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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

MoM% Returning (Blank)

I have several quick measures that are returning (Blank) Values. I'm using a date table marked date table.  The simplest is here. COMs_20200604[Number] refers to the individual case number.   

 

Measure:  

Total Cases = COUNT(COMs_20200604[Number])
 
Quick Measure:
Calculation is Month-over-Month Change
Base Value - Total Cases
Date - 'Date Table'[Date]
# periods - 1
 
Quick Measure DAX:
Total Cases MoM% =
VAR __PREV_MONTH = CALCULATE([Total Cases], DATEADD('Date Table'[Date], -1, MONTH))
RETURN
    DIVIDE([Total Cases] - __PREV_MONTH, __PREV_MONTH)
 
 
I'm trying to calculate change in customer support case volume MoM and then building on top of that I'd like to move to change in open cases and change in cases open >90 days.  All the above are returning blank and I can't figure out why.
2020-06-12_0203.png
 

 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

The DATEADD function requires contiguous date selections ,so make sure your date table have contiguous date. If not, you may create a calendar table using DAX below. Then create relationship between your fact table and the calendar table with Both of Cross filter direction .

 

Calendar =CALENDARAUTO()

 

You may put [Month] and [Total Cases MoM%] into table visual to display the result.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

The DATEADD function requires contiguous date selections ,so make sure your date table have contiguous date. If not, you may create a calendar table using DAX below. Then create relationship between your fact table and the calendar table with Both of Cross filter direction .

 

Calendar =CALENDARAUTO()

 

You may put [Month] and [Total Cases MoM%] into table visual to display the result.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

amitchandak
Super User
Super User

@Anonymous , Try like this

VAR __PREV_MONTH = CALCULATE([Total Cases], datesmtd(DATEADD('Date Table'[Date], -1, MONTH)))

 

Also, make sure you calendar table is marked as date table

ryan_mayu
Super User
Super User

@Anonymous 

Can you try add the month filter and select a month to see if this works?

 

I think you didn't identify the month, the card shows total value, then can't show the pervious month value.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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