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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Sampling based on column values

Below is the sample format of my data.

Requirement: Have a checkbox filter  with entires "SIT", "UAT", "PRPEROD".

Once the user selects any option only rows with corresponding Yes should be shown in a table.

Ex: If user selects "SIT" only rows eith "Yes" under "SIT" column will be displayed

    If user selects "SIT", "UAT" only rows with "Yes" under "SIT" and "UAT" columns will be displayed in the same table

 

Data:

maheshchubb123_0-1597397883803.png

 

1 ACCEPTED SOLUTION
lousegers
Resolver I
Resolver I

Hi @Anonymous ,

 

If I understood your request correctly, I would suggest to tackle this issue as follows:

 

1) Unpivot Columns SIT, UAT & PREPROD resulting in the following table

 

lousegers_0-1597399294857.png

 

2) Designing your PBI report while adding a page filter, which excludes any "No" statuses.

 

lousegers_1-1597399507023.png

lousegers_2-1597399524303.png

I hope this solves your issue!


Was my answer anywhere helpful?

Show your appreciation by simply marking my reply as solution or throw it a kudo.

 

Hop on the data train and get connected @LouSegers

 

View solution in original post

5 REPLIES 5
lousegers
Resolver I
Resolver I

Hi @Anonymous ,

 

If I understood your request correctly, I would suggest to tackle this issue as follows:

 

1) Unpivot Columns SIT, UAT & PREPROD resulting in the following table

 

lousegers_0-1597399294857.png

 

2) Designing your PBI report while adding a page filter, which excludes any "No" statuses.

 

lousegers_1-1597399507023.png

lousegers_2-1597399524303.png

I hope this solves your issue!


Was my answer anywhere helpful?

Show your appreciation by simply marking my reply as solution or throw it a kudo.

 

Hop on the data train and get connected @LouSegers

 

Anonymous
Not applicable

Hi @lousegers ,

 

Thanks for your reply. Can yopu give any reference for achieving the first step please?

1) Unpivot Columns SIT, UAT & PREPROD resulting in the following table

 

Regards,

Mahesh

Hi @Anonymous ,

 

You can just select the three columns (SIT, UAT & PREPROD) & select the "unpivot column" option. 🙂

 

lousegers_0-1597406442908.png

 

If you would like to have more background information on how data pivoting actually works I can only advice taking a look at one of the following links, both very explanatory:

https://radacad.com/pivot-and-unpivot-with-power-bi

https://support.microsoft.com/en-us/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f588221c7098

 

I hope this image clears things up on the part of unpivoting your data. 

 

Was my answer anywhere helpful?

Show your appreciation by simply marking my reply as solution or throw it a kudo.

 

Hop on the data train and get connected @LouSegers

download (1).png

 

 

 

amitchandak
Super User
Super User

@Anonymous , there are from the same table LOv should filter.

 

Or you can create a hierarchy to make sure that happenss

Custom Hierarchy
https://stoneridgesoftware.com/creating-hierarchies-in-power-bi/
https://www.youtube.com/watch?v=x6vXVJZ_eTY

 

or try Hierarchical slicer

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-february-2020-feature-summary/#_Hierarchical_slicer

 

This one, when they are not from same table

https://www.youtube.com/watch?v=cyOquvfhzNM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks for your reply. There is no hierarchy relation between these columns. they are independent

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.