Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi there,
I have a reporting requirement for some KPI to be reported upto the 15th of the month as per selection in slicer.
e.g. Kpi- Count of orders , data is starting from Jan 2021 to 15th oct latest.
so when user selects 'september' in the filter - he/she should be able to get the data starting Jan 2021 to 15th sept 2021.
Thanks for your help in advance.
Cheers !
Solved! Go to Solution.
@chavanr , Assume you have date table with month year.
measure =
var _max eomonth(maxx(allselected('Date'), 'Date'[Date]),-1) +15
return
Calculate(sum(Table[Values]), datesytd('Date'[Date]) , 'Date'[Date]<=_max)
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.
Please check my example, you need to replace the COUNT('Table'[Date]) with your count KPI.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@chavanr , Assume you have date table with month year.
measure =
var _max eomonth(maxx(allselected('Date'), 'Date'[Date]),-1) +15
return
Calculate(sum(Table[Values]), datesytd('Date'[Date]) , 'Date'[Date]<=_max)
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.
Found a solution to the below- calculating the KPI as a measure & then use it as a sub-measure in your formula.
Thanks for the solution @amitchandak
Just a que- it is not giving me upto value when i use for the below measure
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |