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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Arslan94
Frequent Visitor

need help please !!!

hello i am new on the platform and i hope you can help me.

 

the following problem:

 

I want to write a measure that should refer to the "SalesTest" measure and give me the total with the criterion <1000. It works, but I don't get a total at the bottom.

 

The measure: Sales Test= SWITCH(TRUE(),ISINSCOPE(Customer_V[No]),Sales[Sales],Sales[Sales])
the measure must be calculated on Customer_V[No] dimension.

Sales[Sales] = is a "sum" measure.

 

Arslan94_0-1666625895757.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

hello try to use this on the measure you did:

IF(HASONEFILTER([customer no]),[your measure],SUMX(VALUES([customer no]),[your measure]))

View solution in original post

6 REPLIES 6
tamerj1
Super User
Super User

Hi @Arslan94 
What are you slicing by in the table visual? 

Hi @tamerj1 

 

i slicing the Customer no. 

 

@Arslan94 

I'm a little bit confused

this is your measure 

Sales Test= SWITCH(TRUE(),ISINSCOPE(Customer_V[No]),Sales[Sales],Sales[Sales])

this basically returns the same value in both conditions! is thi a typo mistake? how did you blank out the first two values?

Sorry,

@tamerj1 

 

SalesTest is the measure with the criterion <1000.

SalesTest: if(salesTest < 1000,salesTest)

And Sales is the measure : SWITCH(TRUE(),ISINSCOPE(Customer_V[No]),Sales[Sales],Sales[Sales])

Anonymous
Not applicable

hello try to use this on the measure you did:

IF(HASONEFILTER([customer no]),[your measure],SUMX(VALUES([customer no]),[your measure]))

Unbelievably, THANK YOU SO MUCH!!! @Anonymous 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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