The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I'm aiming to maintain the Column Subtotal in a Matrix as YTD, while other columns represent individual months. It works perfectly without any month filters applied (the total is sum of all months, which is coincidently YTD values):
But applying a month filter alters the Total column to reflect only the selected month(s).
Can the Total column always reflect the sum of all months, unaffected by month filters?
Solved! Go to Solution.
Hi @Renna ,
Change your YTD Revenue dax as follow.
Hi @Renna ,
Can you share your sample pbix file.
As I think you have added wrong field to ALL function.
Thanks
It works! Thank you so much!
Hi @Renna ,
use INSCOPE function.
Dax query should be like follow.
Change the table and column names as your data model.
Amount = IF(INSCOPE(Calender[Month]) , CALCULATE(SUM('Sales'[SalesAmount])),CALCULATE(SUM('Sales'[SalesAmount]) , ALL(Calender[Month]))
Thanks
DISU.
User | Count |
---|---|
78 | |
74 | |
43 | |
32 | |
28 |
User | Count |
---|---|
104 | |
93 | |
51 | |
51 | |
46 |