Hi there! I need your help in solving a problem
I need to show unit cost by seperate month and by accumulating several month. It is ok when I choose only one month, but when I want to accumulate data for several months it just summarize unit cost. For example, if unit cost for first month is 2 unit and for the second month is 3 unit, when I combine those month together (1+2) instead of showing 2,5 it shows the sum of theese two figures - 5. What dax formula should I use to make it correct? Thanks
This is my function which is, I guess, is not suit this case.
Here is the unit costs for 6th month seperately
Here is the unit costs for 7th month seperately
Here is the unit costs for two month combined which shows the sum of unit cost for two months.
Solved! Go to Solution.
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
Hi @DauletKali,
It sounds like you want to change measure total level calculation. I'd like to suggest you take a look at the following blogs to know how to check the current row contents level and replace them with specific expressions.
Clever Hierarchy Handling in DAX
Measure Totals, The Final Word
Regards,
Xaoxin Sheng
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
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
212 | |
53 | |
45 | |
41 | |
41 |
User | Count |
---|---|
269 | |
210 | |
72 | |
70 | |
65 |