Forum Discussion

gumis_rulez's avatar
gumis_rulez
Helper I
2 years ago
Solved

Column chart formatting based on parameter

Hi,

 

I am using dax function to create dynamically table with number of clients in each segment. The function is as follows:

 

All Customers Count =
Var CustomerOrders =

    SUMMARIZE(
        Orders,
        Orders[CompanyName],
        "Orders Count", DISTINCTCOUNT(Orders[OrderID])
    )

Return
    COUNTROWS(FILTER(CustomerOrders, [Orders Count]='Customer Segmentation'[Customer Segmentation Value]))

 

Would like to create a bar graph as below but formatted in two colors:

-- customers below selected value orange

-- customes above selected value dark blue

 

Any hints how to resolve this?

 

 

6 Replies