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.
Hi,
I have a Table Visualization where I have used the conditional formating to highlight cells using the measures to get the output like this:
(Highlight weight column if 1 in weightmeasures and same for length)
Until here this is working.
Now I have created another measures which will give me the count of 1s and % of all the 1s in both the above measure:
countrows(filter('Sheet1 (2)','Sheet1 (2)'[LengthMeasure]=1))
count weight = countrows(filter('Sheet1 (2)','Sheet1 (2)'[WeightMeasure]=1))
% Length of highlight = Countrows(Filter('Sheet1 (2)','Sheet1 (2)'[Count Length]=1))/Countrows(FILTER('Sheet1 (2)','Sheet1 (2)'[Count Length](All('Sheet1 (2)'))))
% Weight of highlight = Countrows(Filter('Sheet1 (2)','Sheet1 (2)'[count weight]=1))/Countrows(FILTER('Sheet1 (2)','Sheet1 (2)'[count weight](All('Sheet1 (2)'))))
I put this measure in a Pie chart but there is no interaction between the Pie chart and the table. or Funnel chart and table. (screesnhot below)
When I select the count weight in pie chart it should pull the highlighted rows for the weight. but it is not doing so.
any help is greatly appreciated!
attached my file for reference.
https://www.dropbox.com/s/jam3r79hiy4fg7n/Power%20Bi%20sample%20file.pbix?dl=0
Thanks,
Tejaswi
Solved! Go to Solution.
Hey @Anonymous ,
here you will find my solution: https://tommartens-my.sharepoint.com/:u:/g/personal/tom_minceddata_com/EVmBYJeFMy5Jk-3lVENMeJUBTEuDeAMbJVsIZJ0GfMbtKA?e=RGl3hZ
Until you managed to have a dedicated table (consider to ask the owner of the dataset, if you are using direct query or live connection) that just contains the items "Weight" and "Length", it can not be accomplished what you are aiming (see my first post). I called the table "Weight and Length" and the table looks like this:
I created these two measures:
count combined = SUMX( VALUES('Weight and Length'[Weight and Length]) , var _weightORlength = 'Weight and Length'[Weight and Length] return SWITCH(_weightORlength , "weight" , [count weight] , "length" , [Count Length] ) )
and
filter the rows = var _theTable = VALUES('Weight and Length'[Weight and Length]) return MAXX( 'Sheet1 (2)' , MAXX(_theTable , var _weightORlength = [Weight and Length] return SWITCH( _weightORlength , "Weight" , if([WeightMeasure] = 1 , 1 , BLANK()) , "Length" , IF([LengthMeasure] = 1 , 1 , BLANK()) ) ) )
The 2nd measure returns 1 if the "proper" measure flags a row (identified by the column ID) to be highlighted, this means if no "segment" of the new pie chart is selected, both criteria are considered.
Using the table and the measure [count combined] allows to create a piecahrt (the pie chart at the bottom):
I used the seceond measure to filter the rows, depending on the selection on my pie chart:
And here is a little gif that shows how it works:
Hopefully this provides a new perspective to your problem.
Regards,
Tom
@TomMartens @Zubair_Muhammad @jdbuchanan71 @Greg_Deckler @Sean @MarcelBeug
Any help greatly appreciated!
~ Tejaswi
Hey,
basically this will not work, this is due to the following:
Because of this you have to think about another approach.
My approach would be:
Hopefully this provides you with some ideas.
Regards,
Tom
Hi,
Have you had a chance to go thru this?
Appreaciate your help!
Thanks,
Tejaswi
Hey @Anonymous ,
here you will find my solution: https://tommartens-my.sharepoint.com/:u:/g/personal/tom_minceddata_com/EVmBYJeFMy5Jk-3lVENMeJUBTEuDeAMbJVsIZJ0GfMbtKA?e=RGl3hZ
Until you managed to have a dedicated table (consider to ask the owner of the dataset, if you are using direct query or live connection) that just contains the items "Weight" and "Length", it can not be accomplished what you are aiming (see my first post). I called the table "Weight and Length" and the table looks like this:
I created these two measures:
count combined = SUMX( VALUES('Weight and Length'[Weight and Length]) , var _weightORlength = 'Weight and Length'[Weight and Length] return SWITCH(_weightORlength , "weight" , [count weight] , "length" , [Count Length] ) )
and
filter the rows = var _theTable = VALUES('Weight and Length'[Weight and Length]) return MAXX( 'Sheet1 (2)' , MAXX(_theTable , var _weightORlength = [Weight and Length] return SWITCH( _weightORlength , "Weight" , if([WeightMeasure] = 1 , 1 , BLANK()) , "Length" , IF([LengthMeasure] = 1 , 1 , BLANK()) ) ) )
The 2nd measure returns 1 if the "proper" measure flags a row (identified by the column ID) to be highlighted, this means if no "segment" of the new pie chart is selected, both criteria are considered.
Using the table and the measure [count combined] allows to create a piecahrt (the pie chart at the bottom):
I used the seceond measure to filter the rows, depending on the selection on my pie chart:
And here is a little gif that shows how it works:
Hopefully this provides a new perspective to your problem.
Regards,
Tom
Thanks @TomMartens ,
Your solution is what I am lookign for. I will ask to add the table.
Thanks,
Tejaswi
HI @TomMartens ,
Thanks for your reply!
-->When you say Create sample table , do you mean a visualization table or create new table?
The reason I am asking is because if I have to create a Table than I won't able to do it as for this project I do not have access to Edit queries.
--> I tried to combine the two measures something like this. but I get an error: can you help me with this?
Thanks,
Tejaswi
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |