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

Create a Measure at a higher level that the report. (Level Metric)

Need to create a measure that is the sum total at the month level.

 

I have a sum(column) at the report level, but I need a sum at the exact month (level metric in microstrategy). That total month sales would not be on the report per-se but used to calculate additional measures.

 

I can't seem to figure out how to achieve this. I found a few postings on this topic, but can't see to find a good answer.

 

MonthRegionSalesTotal Month Sales
Nov-18120110
 220110
 330110
 440110
  110 
5 REPLIES 5
parry2k
Super User
Super User

@Anonymous try this

 

Total = CALCULATE( SUM( Table1[Qty] ), ALLEXCEPT( Table1, Table1[Month] ) )


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Probably should have been a little more clear. This is "closer" to what I needed but I need it to "break" by month. But each line to have that "month" total.

 

MonthRegionSalesTotal
18-Nov120110
 220110
 330110
 440110
  110 
18-Dec130150
 230150
 340150
 450150
  150 
    

@Anonymous the measure I provided should work, you need to use matrix visual,

 

add month, region on rows, sales and new measure I provided on value

 

- turn on stepped layout on format page

- turn off column total 

- drill down to region level.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

That was actually still giving me a GRAND TOTAL.

 

I played around a bit and got this to work. Not sure why?

 

Total = CALCULATE( SUM(FactTable[Qty] ), ALLEXCEPT( FactTable, LookupTable[Month] ) )

Anonymous
Not applicable

Actually, it wasn't 100% correct, but it is closer to what I wanted.

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.