Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
gvialetto_kv
Regular Visitor

Different KPIs on the same table

Dear community,

I recently faced this problem and I would like to discuss the easier way to manage it. Here I attach the example

gvialetto_kv_0-1597043064322.png


Data are defined in Table1, each row is unique and each row has a type. I need to define on the dashboard on a table different KPIs on row and each KPI is defined differently (see Table 2).

Does anyone have useful suggestion to perform it on PowerBI?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gvialetto_kv , Create  new measures like

KPI 1 = divide(calculate(sum(table[value]),table[Type] ="A"),calculate(sum(table[value]),table[Type] ="B"))
KPI 2 = divide(calculate(sum(table[value]),table[Type] ="G"),calculate(sum(table[value]),table[Type] ="I"))
KPI 3 = divide(calculate(sum(table[value]),table[Type] ="H"),calculate(sum(table[value]),table[Type] ="E") - calculate(sum(table[value]),table[Type] ="F"))

 

You can have a new table like given below


new Table=
union (summarize(Table, "KPI", "Value",[KPI 1] ,"KPI Def" , "A/B"),
summarize(Table, "KPI", "Value",[KPI 2] ,"KPI Def" , "H/I")
summarize(Table, "KPI", "Value",[KPI 3] ,"KPI Def" , "H/E-F"))

 

Or Display in a Matrix with Show Values on Rows

 

https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@gvialetto_kv , Create  new measures like

KPI 1 = divide(calculate(sum(table[value]),table[Type] ="A"),calculate(sum(table[value]),table[Type] ="B"))
KPI 2 = divide(calculate(sum(table[value]),table[Type] ="G"),calculate(sum(table[value]),table[Type] ="I"))
KPI 3 = divide(calculate(sum(table[value]),table[Type] ="H"),calculate(sum(table[value]),table[Type] ="E") - calculate(sum(table[value]),table[Type] ="F"))

 

You can have a new table like given below


new Table=
union (summarize(Table, "KPI", "Value",[KPI 1] ,"KPI Def" , "A/B"),
summarize(Table, "KPI", "Value",[KPI 2] ,"KPI Def" , "H/I")
summarize(Table, "KPI", "Value",[KPI 3] ,"KPI Def" , "H/E-F"))

 

Or Display in a Matrix with Show Values on Rows

 

https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak thank you for your quick reply!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors