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
MIkkelHyldig
Helper II
Helper II

Filter on calculated measure

Hi 
Im using a calculated measure which basically substract to column: 

Difference = (SUM(Sales[Posted Sales Amount]) + SUM(Sales[Retail Sales Amount])).
The values for Store A can be Posted Sales Amount -100,00 EUR and Retail Sales Amount 100,00 EUR.
For Store B its Posted Sales Amount -82,00 EUR and Retail Sales Amount is 100 EUR.

The result would look like this;
Store A: 0,00 EUR
Store B: 12,00 EUR

I would like to filter on results >0 filtering out Store A. How is that possible? 

Thanks, 

MH
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MIkkelHyldig , Try measure like

 


Difference =
var _1= (SUM(Sales[Posted Sales Amount]) + SUM(Sales[Retail Sales Amount]))
return if(_1 >0 , _1, blank())

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@MIkkelHyldig , Try measure like

 


Difference =
var _1= (SUM(Sales[Posted Sales Amount]) + SUM(Sales[Retail Sales Amount]))
return if(_1 >0 , _1, blank())

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.