Skip to main content
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

New Member

Change column in visual based on measure value

I have in my report a table called Departments, with the following structure:




In the report there a Data Segmentation visual, with L1, L2, L3 and L4. Additionally, I have a measure thats successful calculate the SegmentationLevel (if is a L2 department, it return 2).


In same report I have a Table visual like this, that works:




But I don't want to display full department, because my company have really big org and there is no reason to unfold so much when a higher org is selected. I need to choose the column based on SegmentationLevel measure. Example: If I segment by L1 = DP and L2 = MNG1, the SegmentationLevel measure will be 2 and I would like Column L3 instead of DepartmentName on Table Visual.


I have tried to calculate, but can't get column based on measure value. Any idea on how to achieve this?

Super User
Super User

can you share what you have done and can you please provide an example of the expected output of the value in the table

If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!

Thank you for your support.


I generated an example file where I show data and explain what I'm trying to do:

Sample Report.pbix 


Hope you can help me with it.



Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.