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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
BobSled
Frequent Visitor

Getting 0 for grand total on a created Measure

Hello Everyone,

I feel like this is an easy fix but im abselutely stumped.....

I have seen a couple of forums for items similar to this but they were slightly different/specific and  i wasnt sure how to work those methods into my situation.

 

I have created a couple of measures.

 

1. is to caclualte Points times Qty of items.

Spec Point QTY = MIN('SageProductMaster'[Points]) * SUM('spec_credits'[qty_0])
 
2. is to use the previous measure(Spec Point QTY) to calculate total points times Dollars
Spec Points = [Spec Point QTY]*SUM(spec_credits[untaxed])

 

While these formula gave me proper results in the view i dont get a grand total for the view it just says 0

This is where i cant seem to figure out how to get Grand Totals. Please Help =]

BobSled_1-1684446555211.png

 

 

 

1 ACCEPTED SOLUTION
BobSled
Frequent Visitor

Good Morning Everyone,

Thank you for your feedback and assistance on this one.

Just wanted to give a shout out to @tamerj1 .

I found an old post he was on and the solution below worked perfectly for what i was needing.

I was able to multiple 2 columns from different tables and get grand totals for my new field categories.

Thought i would share it in case it can help anyone else in the future. Thanks again!

NewMeasure =
SUMX (
    Table1,
    VAR Name = Table1[Name]
    VAR Value1 = Table1[Value]
    VAR Value2 =
        MAXX ( FILTER ( Table2, Table2[Name] = Name ), Table2[Value] )
    RETURN
        Value1 * Value2
)

 

View solution in original post

3 REPLIES 3
BobSled
Frequent Visitor

Good Morning Everyone,

Thank you for your feedback and assistance on this one.

Just wanted to give a shout out to @tamerj1 .

I found an old post he was on and the solution below worked perfectly for what i was needing.

I was able to multiple 2 columns from different tables and get grand totals for my new field categories.

Thought i would share it in case it can help anyone else in the future. Thanks again!

NewMeasure =
SUMX (
    Table1,
    VAR Name = Table1[Name]
    VAR Value1 = Table1[Value]
    VAR Value2 =
        MAXX ( FILTER ( Table2, Table2[Name] = Name ), Table2[Value] )
    RETURN
        Value1 * Value2
)

 

Greg_Deckler
Super User
Super User

@BobSled First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8


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

DAX is easy, CALCULATE makes DAX hard...
ppm1
Solution Sage
Solution Sage

Please see this video. You'll need to use SUMX with VALUES or SUMMARIZE in your measure.

(2) Power BI - Tales from the front #01 - Getting the Right Total - YouTube

 

Pat

Microsoft Employee

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.