cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Total Sum of SUMX on each row

Hello!
I have a measure for a sumx and i need the grand total of it. 

Quantity tot of selected = 
SUMX(
    SUMMARIZE(
    Data, Data[ChannelNumber], Data[Date],
    "qtyToCalc", IF( [Factory Leadtime raw] <> BLANK(), [Quantity])
    ),
    [qtyToCalc]
)

Is there a way for me to do that?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try like

 

Quantity tot of selected = 
calculate(SUMX(
    SUMMARIZE(
    Data, Data[ChannelNumber], Data[Date],
    "qtyToCalc", IF( [Factory Leadtime raw] <> BLANK(), [Quantity])
    ),
    [qtyToCalc]
), allselected())


!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try like

 

Quantity tot of selected = 
calculate(SUMX(
    SUMMARIZE(
    Data, Data[ChannelNumber], Data[Date],
    "qtyToCalc", IF( [Factory Leadtime raw] <> BLANK(), [Quantity])
    ),
    [qtyToCalc]
), allselected())


!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Anonymous
Not applicable

worked like a charm!

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors