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 am trying to get a precentage to put in a KPI card but am having trouble.
I have a data set with a flag which indicates if a certain observation is a certain type of corporate priority. I want to know what percentage of these fall into that type of priority but only for a particulat product line using a quick measure.
Basically, my data looks like this:
| ProductSku | ProductLine | Type | IsPriority |
| 1 | Tech | toys | Y |
| 2 | Tech | IT | N |
| 3 | Farm | Tractors | N |
| 4 | Tech | entertainment | N |
I have tried a few different things but can't get it to work.
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
% priority =
VAR _t =
FILTER ( 'Table', 'Table'[ProductLine] = "Tech" )
RETURN
DIVIDE (
COUNTROWS ( FILTER ( _t, 'Table'[IsPriority] = "Y" ) ),
COUNTROWS ( _t )
)
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
% priority =
VAR _t =
FILTER ( 'Table', 'Table'[ProductLine] = "Tech" )
RETURN
DIVIDE (
COUNTROWS ( FILTER ( _t, 'Table'[IsPriority] = "Y" ) ),
COUNTROWS ( _t )
)
thank you so much!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |