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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.