Forum Discussion
Olga_S
5 years agoFrequent Visitor
Vsualize text measure
I have a measure that gives status for the customer based on the sales history. I would like to visualize it with a bar chart where I have status as Axis and number of customers in values. How can ...
- 5 years ago
Olga_S , if you want, measure as dimension, create a table with these four values (Say Status)
Then create a measure like
countx(filter(values(Table[Customer]), [Measure] = max(Status[Status])),[Customer])
Refer my video : https://youtu.be/CuczXPj0N-k
Olga_S
5 years agoFrequent Visitor
Works perfect! Thank you so much!
finally i bult 3 measures:
Sale per customer = sumx(Fact_Sales, Fact_Sales[Sale])
Customer Status = if ([Sale per customer] >50, "high", "low")
Count customer per status = countx(filter(values(Dim_Customer[CustomerName]), [Customer Status] = max(Dim_Status[Status])),Dim_Customer[CustomerName])
At the visual I used Status from the created table with statuses and measure Count customer per status as values
Thanks again!
At the visual I used Status from the created table with statuses and measure Count customer per status as values
Thanks again!