Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello. I need use a measue to assign a text value that will be displayed in a table visual. e.g.,
This works as expected on the table on the left, but when I remove the customer, the table is aggregating by unique color "Black", but this is not what I want. I want to see Black continue to be listed for each "Status" (Up and Down). Please note, I cannot make the "Status" a calculated column because it will need to be dynamic based on slicer selections in the final version.
Solved! Go to Solution.
I've figured out a solution. I've created a stand alone table with the possible status values and a generic key of "1". I then added a column to my fact table with a generic key of "1". In the model, I then join the table of possible status values to my fact table (with a bridge table between to avoid the many-to-many relationship).
I then use a switch statement to test if the value is Up, Down, etc. and map the resulting value to the status table value using the Switch function.
I've figured out a solution. I've created a stand alone table with the possible status values and a generic key of "1". I then added a column to my fact table with a generic key of "1". In the model, I then join the table of possible status values to my fact table (with a bridge table between to avoid the many-to-many relationship).
I then use a switch statement to test if the value is Up, Down, etc. and map the resulting value to the status table value using the Switch function.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
116 | |
102 | |
87 | |
35 | |
35 |
User | Count |
---|---|
152 | |
98 | |
81 | |
61 | |
55 |