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
Anonymous
Not applicable

Create a constant value using DAX that wont be affected by filters

Hello all,

 

I am trying to create a measure that will be a constant value that wont be affected by slicing. 

 

the measure currently is 

 

SalesIsLatest = CALCULATE(SUM(Metrics[Sales]),Metrics[islatest] =1)
 
I need this value to remain static so I can create a tooltip calculation 
 
is this possible? 
 
thank you!

 

 

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

hi @Anonymous 

not clearly understand but you can use 

SalesIsLatest = CALCULATE(SUM(Metrics[Sales]),Metrics[islatest] =1, ALL(Metrics))

there will be SUM() by whole amount of data and it will the same in any case

 

also you can use the simple

SalesIsLatest = 20

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

3 REPLIES 3
az38
Community Champion
Community Champion

hi @Anonymous 

not clearly understand but you can use 

SalesIsLatest = CALCULATE(SUM(Metrics[Sales]),Metrics[islatest] =1, ALL(Metrics))

there will be SUM() by whole amount of data and it will the same in any case

 

also you can use the simple

SalesIsLatest = 20

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Data4Me
Frequent Visitor

Briiliant this resolved the issue I had, as I calculated a total percentage, but when clicking on a filter it kept staying as 100% until I used the all function.

So I now get a total for 100% and percetanges when a filter is clicked on.

Thanks you so much for your help - as even Chat GBT did not bring this answer...

Anonymous
Not applicable

thank you @az38 I tried using ALL but i was doing it slightly incorrect 

 

thank you for the help

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors