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
alonb
Helper I
Helper I

DATESINPERIOD Function

Hi Team , 

 

I have a problem with this function . 

When I use with the function in table matrix visual and try to go down(Drill Down) to the second level

The result I get does not match the result I received before i did Drill Down to records.

 

DATESINPERIOD30 = CALCULATE(COUNT(Issta[id]),
DATESINPERIOD(Issta[insert_time],
max(Issta[insert_time]),-30,DAY))

can you help me with this issue ? 

 

Thanks

Alon

 

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @alonb,

 

Based on my test, if you create a measure DATESINPERIOD30, it can works fine. When you drill down from Year level to Quarter Level, it will count ids between last date for each quarter and maximum date for each quarter back 30 days. You can see attached pbix file.

 

In your scenario, what's the issue do you mean when drill down to second level? Please clarify it.

 

Best Regards,
QiuyunYu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.