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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Month on Month

Hi,

 

I need help to create Day on Day, Month on Month differnce percebtage.

 

I have column with count of incident number and I've removed duplicates by creating a new measure.

ganeshn07_0-1676383939001.png

And I have a entry created date coulmn as well 

ganeshn07_1-1676383997620.png

Based on this I need to create a DoD and MoM percentage difference.

Kindly help

Thank you

ganeshn07_2-1676384118165.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

For Week, you can use the following dax:

WOW_current =
CALCULATE(
    DISTINCTCOUNT('MOM'[IncidentID]),FILTER(ALL('MOM'),'MOM'[Week]=MAX('MOM'[Week])))
WOW_Last =
IF(
    MAX('MOM'[Week]) =1 ,
    CALCULATE(
    DISTINCTCOUNT('MOM'[IncidentID]),FILTER(ALL('MOM'),'MOM'[Week]=
    WEEKNUM(
        DATE(YEAR(MAX('MOM'[EntryCreateDate]))-1,12,31),2))),
CALCULATE(
    DISTINCTCOUNT('MOM'[IncidentID]),FILTER(ALL('MOM'),'MOM'[Week]=MAX('MOM'[Week])-1)))
WOWValue =
DIVIDE(
    [WOW_Last],[WOW_current])

vyangliumsft_0-1676512747417.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @Anonymous ,

For Week, you can use the following dax:

WOW_current =
CALCULATE(
    DISTINCTCOUNT('MOM'[IncidentID]),FILTER(ALL('MOM'),'MOM'[Week]=MAX('MOM'[Week])))
WOW_Last =
IF(
    MAX('MOM'[Week]) =1 ,
    CALCULATE(
    DISTINCTCOUNT('MOM'[IncidentID]),FILTER(ALL('MOM'),'MOM'[Week]=
    WEEKNUM(
        DATE(YEAR(MAX('MOM'[EntryCreateDate]))-1,12,31),2))),
CALCULATE(
    DISTINCTCOUNT('MOM'[IncidentID]),FILTER(ALL('MOM'),'MOM'[Week]=MAX('MOM'[Week])-1)))
WOWValue =
DIVIDE(
    [WOW_Last],[WOW_current])

vyangliumsft_0-1676512747417.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

Hi  @Anonymous ,

I created some data:

vyangliumsft_0-1676444449670.png

 

Here are the steps you can follow:

1. Create measure.

DOD:

DOD_current =
CALCULATE(    DISTINCTCOUNT('MOM'[IncidentID]),FILTER(ALL('MOM'),'MOM'[EntryCreateDate]=MAX('MOM'[EntryCreateDate])))
DOD_last =
CALCULATE(  DISTINCTCOUNT('MOM'[IncidentID]),FILTER(ALL('MOM'),'MOM'[EntryCreateDate]=MAX('MOM'[EntryCreateDate])-1))
DODVALUE =
DIVIDE(
    [DOD_last],[DOD_current])

MOM:

MOM_current =
CALCULATE(
    DISTINCTCOUNT('MOM'[IncidentID]),
PARALLELPERIOD(
    'MOM'[EntryCreateDate].[Date],-1,MONTH))
MOM_last =
CALCULATE(
    DISTINCTCOUNT('MOM'[IncidentID]),
PARALLELPERIOD(
    'MOM'[EntryCreateDate].[Date],0,MONTH))
MOMVALUE =
DIVIDE(
    [MOM_current],[MOM_last])

2. Result:

vyangliumsft_1-1676444449673.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

Hi @Anonymous 

Thank you for help and it worked.

Can you help with week as well, is is the same as day ? 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.