Forum Discussion
Transpose a visual
- 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
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 Team
If 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