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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
lferrier
New Member

Conditional formatting - problem with icons set

Hello,

 

This is my first report with Power BI so bear with me 😉

I try to replicate a view from an Excel file (see below) in Power BI.

In the original file, there are multiple lines for one project and therefore the Count function in PBI is not appropriate.

After using the Conditional formatting, there is a mismatch between the project phase and the icon (somes lines are empty - no icon) but there is also a mismatch between what should be displayed and the icon (see Project D icon in attachment 2).

There is no formula related to the Phase column, I just like to translate data into icons.

 

I am looking for suggestion(s) to solve the issue.

 

Thanks in advance !

 

View to replicate:

lferrier_0-1648641161678.png

 

Current view in Power BI:

lferrier_1-1648641426991.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @lferrier ,

 

Icon names used in DAX is listed in the blog, you could kindly refer to: Power BI Icon Names for Conditional Formatting Using DAX - RADACAD

 

 

So Assume you want to set a icon based on conditional formatting for a Sum value of each Project, please try:

Measure =
VAR _phase =
    CALCULATE (
        SUM ( 'Table'[Phase] ),
        ALLEXCEPT ( 'Table', 'Table'[Project Name] )
    )
RETURN
    SWITCH (
        _phase,
        0, "CircleEmpty",
        1, "Circle25",
        2, "CircleHalf",
        3, "Circle75",
        4, "CircleFilled"
    )

Output:

Eyelyn9_0-1649062122623.png

 

Best Regards,
Eyelyn Qin
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

3 REPLIES 3
lferrier
New Member

Hello Eyelyn9,

Thank you for your help.

I haven't found the time to try the formula yet. I will keep you posted.

Happy Easter

Anonymous
Not applicable

Hi @lferrier ,

 

Icon names used in DAX is listed in the blog, you could kindly refer to: Power BI Icon Names for Conditional Formatting Using DAX - RADACAD

 

 

So Assume you want to set a icon based on conditional formatting for a Sum value of each Project, please try:

Measure =
VAR _phase =
    CALCULATE (
        SUM ( 'Table'[Phase] ),
        ALLEXCEPT ( 'Table', 'Table'[Project Name] )
    )
RETURN
    SWITCH (
        _phase,
        0, "CircleEmpty",
        1, "Circle25",
        2, "CircleHalf",
        3, "Circle75",
        4, "CircleFilled"
    )

Output:

Eyelyn9_0-1649062122623.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Arul
Super User
Super User

Hi @lferrier ,

 

Can you share your sample data?

 

Thanks,

Arul

 

 

 

Thanks





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors
Top Kudoed Authors