Forum Discussion

AlanP514's avatar
AlanP514
Post Patron
2 years ago

Dax for Conditional PIVOT Table



Hi i am trying to achive a pivot table like this (Above Image)
So due to the requirment i created a table in power bi itself(attached down)

after i kept each fields in right place in the pivot table as like this(attached below)

Next i need return the required columns and measure from the right table so i need to take dimension columns from one table and measure from another table eg.

Region Name   From Branch Table 
Zone  From Branch Table 
Branch Name From Branch Table 
Territory Name From Branch Table 
# Enquries Fact_POD Table
Documents Uploaded DMS Fact_POD Table
Total Fact_POD Table
# App Upload %   Fact_POD Table


so i created a measure using switch and seletedvalue like this 

after i added measure into the values field in the pivot table but i am getting this error



My Expectation is i need to return each mentioned dimension columns  and measures using dax

Appreciate Help On this 

 

2 Replies