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
I´m having dificult with a measure , I have a Slicer that filters months , another that filters year, but I want a measure to calculate the sum of the year to that month selected. the problem is that when I choose just a month , for example july, it calculates only the july value. here is the measure:
Hi @Anonymous
Try below measure:
YTDPlan = var a = IF(HASONEVALUE('Base Act W&D _ SAP'[Year]),SELECTEDVALUE('Base Act W&D _ SAP'[Year]),BLANK())
Return
CALCULATE(SUM('Base Act W&D _ SAP'[Plano 2020.Value]),FILTER(ALL('Base Act W&D _ SAP'),[Data max Filtro]>=MONTH('Base Act W&D _ SAP'[Date])&&YEAR('Base Act W&D _ SAP'[Date])=a))
Pbix attached.
Hi, it still doenst work the value should be 13.718.798 for the july month , but this measure is giving the whole ammount of the year . I just need the accumulated until a month. But thank you for the help.
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 90 | |
| 78 | |
| 66 | |
| 65 |