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
Hey,
I am relatively new to powerbi.
Is there a way i can show a table of data filtered by month, but only showing a specific month and year to date total. When I filter my table to current month, the total is also showing current month's data.
Solved! Go to Solution.
Hi @Anonymous ,
You want to show the year-to-date values in the total, and only the selected month's value in the month.
I have a doubt whether the year to date ends on the selected month, or on the current date.
Below are the results for the year to the selected month.
Measure = var _total=TOTALYTD(SUM('Table'[Value]),'CALENDAR'[Date])
return IF(ISINSCOPE('CALENDAR'[Month]),SUM('Table'[Value]),_total)
Below are the results for the year to the current date(today).
Measure2 = var _total=CALCULATE(SUM('Table'[Value]),FILTER(ALL('CALENDAR'),YEAR([Date])=YEAR(TODAY())&&[Date]<=TODAY()))
return IF(ISINSCOPE('CALENDAR'[Month]),SUM('Table'[Value]),_total)
You can check more details from my attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You want to show the year-to-date values in the total, and only the selected month's value in the month.
I have a doubt whether the year to date ends on the selected month, or on the current date.
Below are the results for the year to the selected month.
Measure = var _total=TOTALYTD(SUM('Table'[Value]),'CALENDAR'[Date])
return IF(ISINSCOPE('CALENDAR'[Month]),SUM('Table'[Value]),_total)
Below are the results for the year to the current date(today).
Measure2 = var _total=CALCULATE(SUM('Table'[Value]),FILTER(ALL('CALENDAR'),YEAR([Date])=YEAR(TODAY())&&[Date]<=TODAY()))
return IF(ISINSCOPE('CALENDAR'[Month]),SUM('Table'[Value]),_total)
You can check more details from my attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous This works perfectly, thank you!!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |