Forum Discussion
Count rows based on slicer
- Anonymous3 years ago
Hi binayjethwa ,
Actually, there are 14 rows in the table. And 3 duplicated rows not display in the visual, it is by design. You can open my pbix file(the attachment) for the details...
If you also want to display these duplicated rows in the visual, you can add one index column in Power Query Editor. Please find the details in the updated attachment.
Add index column
Toggle off "Text wrap" option
Best Regards
Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?
Hi lbendlin the requirement is simple , I will have a slicer for BLs where i can multi select the values.
Based on my selection i should divide my total count of rows in item column which is 14 in below table and divide by 100 , if i select another BL which has 5 items i should be dividing 100 by 5 which is 20 and that is what my weight would be.
Not if i multi select in slicer , it should take the overall count and not indivitual count of BL. if i select 2 BLs from dopdown and row count is 10 , then weight would be 100/10. Hope this is clear. THanks in advance.
| weight =100/14= 7.142857 |
| Total row count in below table =14 |
| Item | Source | BLs/subsidiaries | Weight |
| Asset | Initiatives | One | 7.142857 |
| Overall | BL | One | 7.142857 |
| Energy | BL | One | 7.142857 |
| Availability | BL | One | 7.142857 |
| RE | Initiatives | One | 7.142857 |
| Emissions | BL | One | 7.142857 |
| Conversion | Initiatives | One | 7.142857 |
| Fuel | BL | One | 7.142857 |
| Energy | BL | One | 7.142857 |
| Reliability | Initiatives | One | 7.142857 |
| 3E’s | Initiatives | One | 7.142857 |
| Reliability | Initiatives | One | 7.142857 |
| Thermal | BL | One | 7.142857 |
| Reliability | Initiatives | One | 7.142857 |
- JosephWu3 years agoFrequent Visitor
Hi , binayjethwa
I create a measure like this:
Because there are many same items name(Reliabilty、Energy), the table only show 11 item not 14.
So,you will see the number is 7.14.
If you want to change the measure,just change the "CountRow()" to "Distinctcount()"I guess you will get the right answer.
Regards,
Joseph