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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
a4apple
Helper I
Helper I

How to get last 10 days count in dax?

I am using ssas tabular 1200 compatibility. I have a measure that does count rows on particular column. Now I have another measure that shows last 10 days count by using dates between in dax.

My question now is how can I show day1, day2,day3,day4....day10 counts?? The main reason is to create a mode value of these days. It is currently not working for me. Any help is appreciated. Thanks in advance.
1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@a4apple

 

In your scenairo, when you create last 10 days count must, it must aggregate the last 10 days count together. If you want to get each individual day count of "last 10 days", you actually filter the last 10 days date context. You can add a calculated column to tag if the dates are within "Last 10 days" range. Then just put that column into a slicer for filtering dates. See this blog: POWER BI – TIME PERIOD SLICER FOR LAST 7 DAYS,LAST 30 DAYS..

 

Regards,

View solution in original post

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@a4apple

 

In your scenairo, when you create last 10 days count must, it must aggregate the last 10 days count together. If you want to get each individual day count of "last 10 days", you actually filter the last 10 days date context. You can add a calculated column to tag if the dates are within "Last 10 days" range. Then just put that column into a slicer for filtering dates. See this blog: POWER BI – TIME PERIOD SLICER FOR LAST 7 DAYS,LAST 30 DAYS..

 

Regards,

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.