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
RevOps608
Helper II
Helper II

Calculation groups and/or Time Intelligence Issues

Hello,

I switched off "Auto date/time", of course everything broke. I had saved prior, so I just turned it back on. Closed out of Power Bi and re-opened my file. Everything seemed ok until I looked at my calculation groups and they were all screwed up. I re-created some seperate time intelligence functions to veryify it wasnt just my calc groups and none will return a value. I cant figure out what is broke. By dim-dates are also not sorting correctly but I cant figure out how to fix. 

The following are the Time intelligence functions i'm using. 

MTD Sales =
CALCULATE(
    SELECTEDMEASURE(),
    DATESMTD('Calendar'[Date]))
PM Sales =
CALCULATE(
    SELECTEDMEASURE(),
    DATEADD('Calendar'[Date],-1, MONTH))
PY Sales =
CALCULATE(
    SELECTEDMEASURE(),
    DATESYTD(DATEADD('Calendar'[Date], -1, YEAR)))
YTD Sales =
CALCULATE(
    SELECTEDMEASURE(),
    DATESYTD('Calendar'[Date]))
QTD Sales =
CALCULATE(
    SELECTEDMEASURE(),
    DATESQTD('Calendar'[Date]))
time intelligence.jpgmodel view.jpg
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@RevOps608 , Make sure you are using explicit measure with calculation group

The year should be coming from date table. Do not use any hierarchy there. Use a year, month year column

 

I tested it , and it was working fine, Please find the attached file after signature

 

Model explorer public preview with calculation group authoring| Measure Slicer: https://youtu.be/VfxfJJ0RzvU

 

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@RevOps608 , Make sure you are using explicit measure with calculation group

The year should be coming from date table. Do not use any hierarchy there. Use a year, month year column

 

I tested it , and it was working fine, Please find the attached file after signature

 

Model explorer public preview with calculation group authoring| Measure Slicer: https://youtu.be/VfxfJJ0RzvU

 

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you! And also for the video. It was the heirarchy throwing me off. Shouldve caught it.

 

Best,

Ross

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.