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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
ROG
Responsive Resident
Responsive Resident

No totals and wow wrong

Hi folks!

Can you please help me figure it out, why the total from 'Previous Week Net' isn't showing? 
Also, why the week 34 doesn't have value on the 1st column and -100% on the others?

See below the measures.

 

ROG_0-1659964598912.png

CurrentWeek Net= SUM( Net)
PW Net Churn =
VAR PriorWeek = SELECTEDVALUE ( '🔎Calendar'[Week Number Year] ) -1

RETURN
CALCULATE(
    [Net Churn - 30D],
    ALL ( '🔎Calendar'[Week Number Year]),
    '🔎Calendar'[Week Number Year] = PriorWeek
)

 
Net Churn% WoW = ([CurrentWeek Net]-[PW Net Churn])/[PW Net Churn]
Net Churn % WoW Change = [Net%] - [Net Churn% WoW]

Thanks
1 ACCEPTED SOLUTION
memepu
Resolver II
Resolver II

Hi @ROG ,

Create three measures based on  the above  measures.

CurrentWeek Net total=var _b=SUMMARIZE('calendar','calendar'[date],"aaa",'calendar'[CurrentWeek Net])
return
IF(isinscope('calendar'[date]),'calendar'[CurrentWeek Net],SUMX(_b,[aaa]))
Net Churn% WoW total =var _b=SUMMARIZE('calendar','calendar'[date],"aaa",'calendar'[Net Churn% WoW])
return
IF(isinscope('calendar'[date]),'calendar'[CurrentWeek Net]Net Churn% WoW],SUMX(_b,[aaa]))
Net Churn % WoW Change total= var _b=SUMMARIZE('calendar','calendar'[date],"aaa",'calendar'[Net Churn % WoW Change])
return
IF(isinscope('calendar'[date]),'calendar'[Net Churn % WoW Change],SUMX(_b,[aaa]))

 

 If I have  misunderstood your meaning, you can create simple data with excel, then show me the screenshots about the data and the desired output your want.

 

Best regards.

View solution in original post

2 REPLIES 2
memepu
Resolver II
Resolver II

Hi @ROG ,

Create three measures based on  the above  measures.

CurrentWeek Net total=var _b=SUMMARIZE('calendar','calendar'[date],"aaa",'calendar'[CurrentWeek Net])
return
IF(isinscope('calendar'[date]),'calendar'[CurrentWeek Net],SUMX(_b,[aaa]))
Net Churn% WoW total =var _b=SUMMARIZE('calendar','calendar'[date],"aaa",'calendar'[Net Churn% WoW])
return
IF(isinscope('calendar'[date]),'calendar'[CurrentWeek Net]Net Churn% WoW],SUMX(_b,[aaa]))
Net Churn % WoW Change total= var _b=SUMMARIZE('calendar','calendar'[date],"aaa",'calendar'[Net Churn % WoW Change])
return
IF(isinscope('calendar'[date]),'calendar'[Net Churn % WoW Change],SUMX(_b,[aaa]))

 

 If I have  misunderstood your meaning, you can create simple data with excel, then show me the screenshots about the data and the desired output your want.

 

Best regards.

Greg_Deckler
Super User
Super User

@ROG 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



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.