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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.