Forum Discussion
Anonymous
3 years agoNot applicable
Transpose a visual
I have a visual in Power BI Desktop that looks like this: Visual 1: ClientName PlanID Address Phone ABC 123 123 Broad St 123456789 DEF 456 456 Main St 287565462 XYZ 781 ...
- Anonymous3 years ago
Hi Anonymous ,
1. The first method puts these fields into the Value Stored Value bucket of the matrix and turns switch values to rows option on in the Format pane.
2. The second way is to build this table in the PowerQuery Editor. (Manual input is fine)
then ceate a new measure:
Measure = IF( ISFILTERED('Table'[ClientName]), SWITCH( MAX('Table (2)'[ColumnName]), "ClientName", CALCULATE(MAX('Table'[ClientName]),'Table'[ClientName] = MAX('Table'[ClientName])), "PlanID", CALCULATE(MAX('Table'[PlanID]),'Table'[ClientName] = MAX('Table'[ClientName])), "Address", CALCULATE(MAX('Table'[Address]),'Table'[ClientName] = MAX('Table'[ClientName])), "Phone", CALCULATE(MAX('Table'[Phone]),'Table'[ClientName] = MAX('Table'[ClientName])) ), "Please select a client" )Please refer to the pbix file.
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Anonymous
3 years agoNot applicable
Thank you, Gao! I tried method 1 and it works great!