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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
BZerr824
Frequent Visitor

Help with Dax

Hi Everyone,

I need help!  We use live connection to an SSAS tabular model for our Power BI reports, but sometimes have to create addtional formulas within specific reports.
I'm trying to get a total for one level of a location hierarchy and I need that total to be displayed no matter what level the report is actually at (i.e. I need the same total to repeat for all records. )  Here is example of what I need.  Hopefully this makes sense!  Basically I need "New Metric" to stay at the DM level, no matter what level the report is at.  Thanks in advance for your help!!

     
Slicer may be on DM or a Store, but want new metric to remain same
     
     
     
District MgrStore nameStore countMetric 1New metric
BobStore 1142.25
BobStore 2122.25
TimStore 3110.75
AmyStore 4133
AmyStore 5183
AmyStore 6113
     
     
Calculate 75% of  Average Metric 1 per DM 
Bob2.25 75% of the average of metric 1 per DM
Tim0.75   
Amy3  
1 REPLY 1
Greg_Deckler
Super User
Super User

@BZerr824  - Get the MAX of DM column and then use ALL and then filter down your value for DM.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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.