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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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-f5882...

 

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/#_Hierarchic...

 

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.