cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
einarrattgard
Helper III
Helper III

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

@einarrattgard , Try like

 

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


Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@einarrattgard , Try like

 

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


Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

worked like a charm!

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!