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
kcantor
Community Champion
Community Champion

Calculation not working this month. Worked other months -- Days in Month

I have a set of calculations that worked fine until May 1 and then, they broke. The data they build on is correct and displays in the multilevel card (placed there to check the numbers. Here are my measures and the results. 

 

# Days in Month =
CALCULATE (
    DISTINCTCOUNT ( DimDate[DateKey] ),
    DATESBETWEEN ( DimDate[DateKey], [First Day This Month], [End of Month] ),
    FILTER ( DimDate, [Is Weekend] = "No" )
)

 

# Days MTD =
CALCULATE (
    DISTINCTCOUNT ( DimDate[DateKey] ),
    DATESBETWEEN ( DimDate[DateKey], [First Day This Month], TODAY () ),
    FILTER ( DimDate, [Is Weekend] = "No" )
)

 

Days Remaining in Month =
[# Days in Month] - [# Days MTD]

 

days in month.JPG

Any ideas?





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

Proud to be a Super User!




2 ACCEPTED SOLUTIONS

Found it 🙂

 

There are invisible Slicer on your page "Work in progress"

 

Go to the View menu, Check "Selection Pane", make both slicers visible, deselect "2018-04" 😉

 

Cheers

Tom 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

@kcantor Please check the selection pane

Menu: View --> Check "Selection Pane",

on the file you provided are invisible slicer



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

17 REPLIES 17

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.