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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors