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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
simon_pbi_data
Frequent Visitor

Dynamic Column based on Slicer selection value Power BI

Hi everyone,
I need to create a dynamic column based slicer on my report.

Let me explain better:
I have this table in my datamodel:

level_4level_5level_6level_7
italysouthapulialecce
italysouthapuliabari
italycenterlaziorome
italynorthlombardymilan


I created slicers, with these 4 column above:
slicer in my reports: level_4, level_5, level_6, level_7

then i created a visual table to show the results from slicer like this:

simon_pbi_data_0-1718960865829.png

 

My goal is to show the next level, when i filter any value of one of the slicers above my reports, in the table!
(considering my slicers are set to select one value at a time, "multi-select with Ctrl")

First example:
if I filter any value of level_4, i need to show all value of level_5,

simon_pbi_data_1-1718961318187.png

Second example:
if I filter any value level_6, i need to show all value of level_7 (and so on..)

simon_pbi_data_2-1718961602083.png

 

2 REPLIES 2
IanCockcroft
Post Patron
Post Patron

hi Simon,

Have you tried using field parameters?

I am putting a pbi togeher to see if that works.

mean time, check this out

https://www.youtube.com/watch?v=elnY9LtuhMU&t=107s

 

chees

Ian

I don't know, because I need to have slicers at the top like in the example.
I thought of a type of calculated column that dynamically changes its values ​​based on the selection made in the slicers at the top of the report.

Your solution comes very close but I wouldn't be able to insert the condition where "if you filter something by level_4, you must return only the values ​​of level_5"

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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