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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Please help to buil the table KPI or any KPI chart included the colour indicator

Dear you guys,

i am newcomer, new user who would like to learn the Power BI,

please guide to me build the KPI table with the information as table. exam.PNG

Thank you so much

1 ACCEPTED SOLUTION

Hi @Anonymous 

Power bi doesn't support to hold many types of data into one column.

PLease create measures as a workaround.

Capture10.JPG

Actual2 = IF(SUM('Table 2'[Actual])<1,FORMAT(SUM('Table 2'[Actual]),"Percent"),FORMAT(SUM('Table 2'[Actual]),"#,#0"))

Target2 = IF(SUM('Table 2'[Target])<1,FORMAT(SUM('Table 2'[Target]),"Percent"),FORMAT(SUM('Table 2'[Target]),"#,#0"))

Threshold2 = IF(SUM('Table 2'[Threshold])<1,FORMAT(SUM('Table 2'[Threshold]),"Percent"),FORMAT(SUM('Table 2'[Threshold]),"#,#0"))

 

Then create a kpi measure, use 1,2,3 repleace "green","yellow",red"

kpi =
VAR a =
    SUM ( 'Table 2'[Actual] )
VAR t =
    SUM ( 'Table 2'[Target] )
VAR s =
    SUM ( 'Table 2'[Threshold] )
RETURN
    IF (
        a >= t,
        IF (
            s <= t,
            1,
            2
        ),
        IF (
            s > t,
            1,
            3
        )
    )

Capture11.JPGCapture13.JPGCapture14.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Right click on the column/measure, select conditional formatting->icons, 

Capture3.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Dear @v-juanli-msft .

In my table the value unit in each column is not the same, they are included percentage, amount so i could not create the rules for my table.

how to create the rules for each row on my table.

thank you for you help

Dzung

Hi @Anonymous 

Do you add many columns into "Value" bucket  of the matrix or table?

If so, you need to configure conditional formatting for every column.

 

Best Regards

Maggie

Anonymous
Not applicable

Dear @v-juanli-msft 

Actually, my table is only as picture in first massage. I am a newcomer so  I not really understand what your guidance is. You mean that my table need to add many indicators for each column? Please give me the example for easy understading.

thank you so much

Hi @Anonymous 

Could you share a screenshot to show which columns are added into "column","row","value" bucket?

For example

Capture4.JPG

Best Regards

Maggie

Anonymous
Not applicable

Dear @v-juanli-msft

Please see the snapshot. I have used the Matrix table to create the KPI indicator. 

The Unit in each row of the table is different, for examble, in row BRE hydrocaban Recovery has shown in percentage, in row KNB Liquid is oil Barrel. 

I only have 4 colums as the table ("Description", "Actual", "Target" and Threshold )

Now, i want to show the  KPI indicator as the 2nd snapshot. This is incorrect indicator because i do not know how to establish the condition in accordance with condition of each row. 

Please fix it or maybe could you guide to me other way to show the KPI indicator?

thank you so much,

Dzung

Step 1.PNGStep 2.PNG

Hi @Anonymous 

Power bi doesn't support to hold many types of data into one column.

PLease create measures as a workaround.

Capture10.JPG

Actual2 = IF(SUM('Table 2'[Actual])<1,FORMAT(SUM('Table 2'[Actual]),"Percent"),FORMAT(SUM('Table 2'[Actual]),"#,#0"))

Target2 = IF(SUM('Table 2'[Target])<1,FORMAT(SUM('Table 2'[Target]),"Percent"),FORMAT(SUM('Table 2'[Target]),"#,#0"))

Threshold2 = IF(SUM('Table 2'[Threshold])<1,FORMAT(SUM('Table 2'[Threshold]),"Percent"),FORMAT(SUM('Table 2'[Threshold]),"#,#0"))

 

Then create a kpi measure, use 1,2,3 repleace "green","yellow",red"

kpi =
VAR a =
    SUM ( 'Table 2'[Actual] )
VAR t =
    SUM ( 'Table 2'[Target] )
VAR s =
    SUM ( 'Table 2'[Threshold] )
RETURN
    IF (
        a >= t,
        IF (
            s <= t,
            1,
            2
        ),
        IF (
            s > t,
            1,
            3
        )
    )

Capture11.JPGCapture13.JPGCapture14.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Dear @v-juanli-msft thank you so much, now i know we have to create the variance hiden.

thank you so much for you help.

Dzung

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors