Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

HasOnFilter with multiple if conditions

Hi I have calculated measure based on multiple conditions. Instead of giving total of calculated column it is applying same logic for total as well and gives incorrect sum.

below is my calculated measure. I tried to put Hasfilter on it but it is not working as well.

 

Difference =
 
IF(SUM('2018 Invoice'[Month]) < 9  &&  SUM('August 2019'[Amount]) <> BLANK(),
( SUM('August 2019'[EUR Amount]) - SUM('2018 Invoice'[Revenue])) ,
 
IF(SUM('2018 Invoice'[Month]) > 7  &&  SUM('August 2019'[Amount]) <> BLANK() ,(sum(Opportunity[Revenue])+sum('August 2019'[Amount]))-sum('2018 Invoice'[Revenue]) ))
2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Please see this post regarding How to Get Your Question Answered Quickly:

 https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @Anonymous ,

 

May be parenthesis is causing the incorrect Data.

 

You can provide some sample data for us  with a screesnhot of expected result. 

It would be easy for us to get back with your solutions quickly.

 

Thanks,

Tejaswi

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.