Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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)
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |