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
I have searched for a solution but can't seem to get them to work in my specific situation.
I have two columns that I'm using: a count for the number of claims in one column and a second column is a count of the number claims that have had someone appointed to them, I then have this shown by year. I want to have a column showing the percentage of claims that have had someone appointed to them. Example table below is what i'm looking for including the % Appointed column I want to calculate. I have added an example of the data table below
| Year | Count of ClaimRef | Count of appointed | % Appointed |
| 2017 | 100 | 10 | 10% |
| 2018 | 10 | 10 | 100% |
| 2019 | 100 | 10 | 10% |
| 2022 | 40 | 20 | 50% |
| Total | 250 | 50 | 20% |
Any help would be much appreciated
EDIT:
The table I've shown above was my desired output. My data table would look like the following:
| ClaimRef | Year | Appointed |
| 1234 | 2020 | Name1 |
| 1235 | 2021 | Name2 |
| 1236 | 2020 | |
| 1237 | 2021 | |
| 1238 | 2022 | Name3 |
In my output table (being shown in the report) I'm using a count of ClaimRef and a count of appointed (i.e. the claims where someone is appointed).
Solved! Go to Solution.
You can add a new column with the code below:
Sorry if it wasn't clear, the table I've shown was my desired output. My data table would look like the following:
| ClaimRef | Year | Appointed |
| 1234 | 2020 | Name1 |
| 1235 | 2021 | Name2 |
| 1236 | 2020 | |
| 1237 | 2021 | |
| 1238 | 2022 | Name3 |
In my output table (being shown in the report) I'm using a count of ClaimRef and a count of appointed (i.e. the claims where someone is appointed).
You can add a new column with the code below:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 12 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |