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.
Hi
I want to display the cost of my projects according to the Max date selected in the slicer
Project name | Cost amount | Start Date |
PRJ1 | 75 | 01/03/2019 |
PRJ1 | 89 | 05/03/2019 |
PRJ2 | 95 | 01/03/2019 |
PRJ2 | 99 | 05/03/2019 |
PRJ3 | 33 | 01/03/2019 |
But the total is incorrectly displayed in Power BI
This certainly comes from not taking into account the cost of the project 3
I guess my SUMX formula has an error
Solved! Go to Solution.
Hi
I found a solution
Manage a new colnmn
Hi @Bamak ,
Actually it is not an issue of the SUMX function. Here we should create another calculated table to work on it.
Table = VALUES(Feuil1[Start Date])
Afther to create the measures as below.
Max_SelectedDate = MAXX('Table','Table'[Start Date])
Measure = SUMX(FILTER(Feuil1,Feuil1[Start Date]=[Max_SelectedDate]),'Feuil1'[Cost amount])
Regards,
Frank
Hi
I found a solution
Manage a new colnmn
Thank you very much v-frfei-msft
But I think I did not speak well about my functional need
In fact if I select the 2 dates in the slicers, I would like to see the cost of the max dates present in the 2 dates range
Here we miss the project cost 3 (started on 1/3/2019)
And that with a correct final total
By cons everything is OK for project 1 & 2, the cost of 5/3/2019 is displayed
Regards
Christophe (powerBI france fan)
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 |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |