The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a table with the average of sells per product per month, like the image. When I add the total of power bi, automatically it shows as total the average per month but I would like to see the sum of each average YTD. Like the example.
How can I do this in DAX?
Thank you in advance.
Hi,
Thanks for the replying. But unfortunately this don't solve it. 😞 I need to sum the results from each month average. Each average that I did through the sumproduct.
Hi,
I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I hope the below can provide some ideas on how to create a solution for your dataset.
Expected result measure: =
IF ( HASONEVALUE ( Data[Date] ), AVERAGE ( Data[Qty] ), SUM ( Data[Qty] ) )
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |