Forum Discussion
Changing column graph displayed value
- 9 years ago
Hi albertgarri,
I am sorry for inconvenience, I misunderstand your idea in above reply. The solution above is to create a new table using formula. While in this solution, please click the Enter Date, you will get the create table window, please type the values, you can rename the table name in highlighted background section. Click OK you get Table4.
In the DAX formula, "Expected Value" is the measure name. Please right click your table->New measure, type the following statement is over-all.Expected Value = IF(HASONEVALUE( Table3[Value]), SWITCH(VALUES( Table3[Value]), "Amount", SUM( Table4[Amount] ), "Amount spent", SUM( Table4[Amount spend] ), "Price per unit", SUM( Table4[Price per Unit] ) ), "Please select only one value to display")
In your scenario, please replace Table3 name using your actual table name. Table4 is the new table name. Please replace it using your table name.
If you have any other issue, please let me knowBest Regards,
Angelia
Thank you very much for all your fast responses. I'm pretty sure this would have solved a more advanced user problem.
However, I'm still very new with power BI and I do not dominate some of the basic tools.
I've tried to follow your instructions but I got stuck at the 1st step. I don't know how to create the table with the three column header name. Can you give me some indications?
Again, thank you so much for the help :)
Hi albertgarri,
In your PowerBI desktop interface, click New Table(highlighted in red line) under Modeling window, you will get the second screenshot, please type the code in the location where cursor blinks(highlighted in yellow background).
If you have any problem, please feel to ask.
Best Regards,
Angelia