Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
So I am trying to work out the percentage of different values in a column.
This is the table and I want to know what percentage are 'S1', whenever I have tried to calculate this I get an error message about using a string.
| ID | TYPE | MECH |
| NDPD0424834 | NSS | NS |
| NDPD0790352 | S1 | S1 |
| NDPD0829788 | S1 | S1 |
| NDPD0830944 | S1 | S1 |
| NDPD1061480 | S1 | S1 |
| NDPD1658980 | S1 | S1 |
| NDPD1659576 | NSS | S1 |
| NDPD1659692 | S1 | S1 |
So in excel I would do something like this =COUNTIF([TYPE],"S1")/COUNTA[ID]*100
The bit I am struggling on is not being able to just focus on the rows with "S1"
Solved! Go to Solution.
Here is what you need to do :
1 - Add new column with this formula :
percentage = COUNTROWS(COMPLETE_UPGRADE)/CALCULATE(COUNTROWS(COMPLETE_UPGRADE);ALL(COMPLETE_UPGRADE))
2 - Add a multiple row card
3 - Add TYPE
4- Add percentage column (You can choose to display it either as a number either as a percentage. On my screenshot I've choosed the percentage of S1)
Et voilà !
Hello @symun23
Add a multiple row card on your report
Add you column TYPE on it
then add a new column :
percentage = COUNTROWS(YOURTABLE)/CALCULATE(COUNTROWS(YOURTABLE);ALL(YOURTABLE))
(replace YOURTABLE by your table name)
Then add the column percentage to the multiple row card
If you don't understand, give me your table name and I'll do it for you
Thanks for the reply Quentin,
The table name is COMPLETE_UPGRADE
Here is what you need to do :
1 - Add new column with this formula :
percentage = COUNTROWS(COMPLETE_UPGRADE)/CALCULATE(COUNTROWS(COMPLETE_UPGRADE);ALL(COMPLETE_UPGRADE))
2 - Add a multiple row card
3 - Add TYPE
4- Add percentage column (You can choose to display it either as a number either as a percentage. On my screenshot I've choosed the percentage of S1)
Et voilà !
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |