Forum

Performing a logica...
 
Notifications
Clear all

Performing a logical test where no values exist and receiving a false value

3 Posts
2 Users
0 Reactions
104 Views
(@excel_tim)
Posts: 26
Eminent Member
Topic starter
 

Hi Mynda

I've created a measure called 'Change in Service Provisions' that is as follows: -

=If([Most recent transactions] = [Previous period transactions],
   Blank(),
    "Check for change in Service Provision"
   )

Where [Most recent transactions] measure is: -

Calculate (
     Sum('Accounts table'[Amount posted]),
      Filter('Accounts table'[journal date]=
       Max('Accounts table'[journal date])
      )
)

And [Previous period transactions] is the same as [most recent transactions] less 14 days (the previous pay run).

The IF measure works well where a client is present on the latest and previous pay run returning "Check for change in Service Provision" where two values are not the same. The problem I have is when the client is not appearing in the latest and previous pay run. In these instances, it is still returning "Check for change in Service Provision". I've set up the Pivot table so I can see both the "most recent transaction" measure and "previous period transaction" next to the "Change in Service Provision" measure to see what is happening. Where the client is not appearing in the accounts table on these payment run, the value in the pivot table is blank and when I hover over that point it says "value: no value".
Is there anyway I can prevent the IF statement from returning the "Check for Service Provision" when no values exist in the two measures it is comparing? Thank you.

 

Tim 

 
Posted : 27/07/2021 7:35 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Tim, 

Start with an IF(ISBLANK([Previous period transactions]), Blank()...

Mynda

 
Posted : 28/07/2021 5:46 am
(@excel_tim)
Posts: 26
Eminent Member
Topic starter
 

Hi Mynda

Thanks, that's great.

 

Tim

 
Posted : 03/08/2021 5:34 am
Share: