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
My problem is to have a average per month in a table, example:
It has to look like:
Anyone that could help me with a dax formula?
I've tried Averagex, but I wouldn't work.
Please Help 🙂
Hi @Anonymous
You may create a measure like below:
Measure = AVERAGEX ( FILTER ( ALL ( Table1 ), MONTH ( Table1[Created Date] ) = MONTH ( MAX ( Table1[Created Date] ) ) ), Table1[Cost] )
Regards,
Cherie
Hello Cherie
Thanks for your quick answer.
But it doesn't seem right - look below:
What do I do wrong?
Please help 🙂
Hi @Anonymous
Could you show me the data or share your .pbix file?Below is my sample data.You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.
Regards,
Cherie
Hi Cherie
It got it to work now - it was a data error.
But I now have a new issue - I have to see it per item.
So in this I need 973202 item to calculate measure like above mentioned (for March it has to be 8,00 not 5,36)
When I click on the overview table at 973202, it still counts all the lines with in the measure, it has to be per item, hope you understand? How do i do?
Hope you can help me 🙂
Hi @Anonymous
It seems the cost is a measure.Could you provide the formula of the cost measure?It would be better if you could paste the data here instead of the screenshot.
Regards,
Cherie
Hi Cherie
The cost measure (its a new column) comes here:
Hi @Anonymous
Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution and welcome to share your own solution. More people will benefit from here. If not, please share more details for us so that we could help further on it.
Regards,
Cherie
Hi Cherie
The problem has not been solved - i need the average cost pr. item and not for the hole table - can you help with that?
Regards Elena
Hi @Anonymous
Try below measure:
Measure 3 = AVERAGEX ( FILTER ( ALLSELECTED ( Ark1 ), MONTH ( Ark1[Created Date] ) = MONTH ( MAX ( Ark1[Created Date] ) ) ), [Cost] )
Regards,
Cherie
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |