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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
rupak_12
New Member

power bi

Hi
Can anyone help me to solve prb in power bi.
1st part
I need to find the percentages like 10%,20%....100% of total row count of a table and the percentages should be shown in slicer so that when I click on 10% .... 100% in slicer it will give me the result 10% of total row count and here there are 4tables which should have 4 different slicer.
2nd part
After creating 4slicer and 4table which will work each individually then I need to find the common values between the 4 tables. For example - suppose when I select 10% in fst slicer 20% in second 30% in third and 40% in fourth I should have another table visual where it give me only the common values between the 4table of 10,20,30,40% so that I will get 4tables where I will get individual count according to the percentage and at the same time another table will be showing only the common values between the 4 table
Thanks

1 ACCEPTED SOLUTION
v-junyant-msft
Community Support
Community Support

Hi @rupak_12 ,

There are solutions to your first question:
My test data is as follows:

vjunyantmsft_0-1701070143309.pngvjunyantmsft_1-1701070151828.png

Adding an Index Column to Each Data Table in Power Query and use the following DAX to calculate the number of rows per row as a percentage of the total number of rows:

 

Percentage = 
'Table1'[Index] / CALCULATE(COUNT('Table1'[data1]),ALL('Table1'))

 

vjunyantmsft_2-1701070246567.png

Use the following DAX to create a metric for each data table:

 

Measure1 = 
IF(
    MAX('Table1'[Percentage]) <= SELECTEDVALUE(MyColumn[Value]), "SHOW", "HIDE")

 

vjunyantmsft_3-1701070354585.png

 

 Select the visual object and do the following in "Filters on this visual":

vjunyantmsft_5-1701070560733.png

The same as the second visual object and the output is like below:

vjunyantmsft_6-1701070648761.png

Then configure the slicer scope as follows:

vjunyantmsft_7-1701070782534.png

vjunyantmsft_4-1701070476201.png

The final results are as follows:

vjunyantmsft_8-1701070846420.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-junyant-msft
Community Support
Community Support

Hi @rupak_12 ,

There are solutions to your first question:
My test data is as follows:

vjunyantmsft_0-1701070143309.pngvjunyantmsft_1-1701070151828.png

Adding an Index Column to Each Data Table in Power Query and use the following DAX to calculate the number of rows per row as a percentage of the total number of rows:

 

Percentage = 
'Table1'[Index] / CALCULATE(COUNT('Table1'[data1]),ALL('Table1'))

 

vjunyantmsft_2-1701070246567.png

Use the following DAX to create a metric for each data table:

 

Measure1 = 
IF(
    MAX('Table1'[Percentage]) <= SELECTEDVALUE(MyColumn[Value]), "SHOW", "HIDE")

 

vjunyantmsft_3-1701070354585.png

 

 Select the visual object and do the following in "Filters on this visual":

vjunyantmsft_5-1701070560733.png

The same as the second visual object and the output is like below:

vjunyantmsft_6-1701070648761.png

Then configure the slicer scope as follows:

vjunyantmsft_7-1701070782534.png

vjunyantmsft_4-1701070476201.png

The final results are as follows:

vjunyantmsft_8-1701070846420.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @rupak_12 ,

Sorry for the extra screenshot, this one doesn't work so please ignore it!

vjunyantmsft_0-1701071239192.png


Best Regards,
Dino Tao

Rupak_bi
Post Prodigy
Post Prodigy

I dont know what data available in your tables, but the concept is to identify an index column or create a new one. then make a calculated column to to flag 10%, 20% ...... of the rows. thats it..

 

for common in the table, I need to understand what data inside. 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.