Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello PBI Experts,
Is it possible to copy row values from matrix and then insert to other row to perform some calculation.
In the pic above, MeasureA will have to be completed.
MeasureA(Apr)= MeasureA(Mar)+ MeasureC(April)
MeasureA(May)=MeasureA(Apr)+MeasureC(May)
This process is continued until value for MeasureA(Dec) is achieved
Please help
Regards,
JorgeAbiad
You could use CALCULATE and DATEADD to get the value of MEASURE A for -1 Month and then add that to the the value of Measure C for the current month. I would recommend creating an additional measure though to make it work so you don't have to deal with circular references and variables.
Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos.
I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query.
https://sites.google.com/site/allisonkennedycv
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hello @AllisonKennedy ,
Let me rephrase my scenario, I have a matrix below, the measure is Current(RVO+CDP).
What I want to achieve is to get an accumulated measure from out of this measure. This will then be place in another matrixwith the same columns.
In the new matrix, Jan=1522,Feb=1522+1363,Mar=Feb(value)+1205,Apr=Mar(value)+556, and so on...
How do I right the correct Dax for this?
Thanks.
Regards,
JorgeAbiad
@JorgeAbiad , you have to create a cumulative measure. Prefer a Date calendar
Cumm Sales = CALCULATE([RVO]+[CDP],filter(date,date[date] <=max(Table[Date])))
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 :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Can you use the DATESYTD() DAX function? Are your months coming from a DimDate or Calendar table? If so I would recommend using time intelligence dax here to get cumulative results.
Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos.
I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query.
https://sites.google.com/site/allisonkennedycv
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |