Forum Discussion
Saxon202202
3 years agoHelper III
Matrix table using multiple column
Hi, I have data data table and the table contain country id, country code and qty. In visualisation, I like to breakdown by country id, country code and qty in matrix table. At the moment all...
- 3 years ago
Hi Saxon202202
I've edited the PBIX with a calculated column to rank Country Code by Country ID.
Index = RANKX ( FILTER ( DATA, DATA[COUNTRY ID] = EARLIER ( DATA[COUNTRY ID] ) ), DATA[COUNTRY CODE], , ASC, DENSE )
Anonymous
3 years agoNot applicable
Hi ,
This can be resolved using switch function
SWITCH =
SWITCH(
TRUE(),
SELECTEDVALUE(DATA[COUNTRY ID]) = "RS",SELECTEDVALUE(DATA[COUNTRY CODE]),
SELECTEDVALUE(DATA[COUNTRY ID]) = "PD",SELECTEDVALUE(DATA[COUNTRY CODE]),
SELECTEDVALUE(DATA[COUNTRY ID]) = "OQ",SUM(DATA[ORDER QTY])
)
BR
- Saxon2022023 years agoHelper III
Anonymous @, Thanks for your reply. The country id should be show the relevant country code.