Forum Discussion
Gus_C
5 years agoFrequent Visitor
Multiple Top N in the x-axis
Hi all, been struggling with creating a particular graph this morning: I am looking to create a bar graph with 4 bars: Top 5, top 10, top 20, and top 50 clients by value of sales. Essentially wi...
- 5 years ago
You can create a single disconnected table like this one called 'TopNTable'.
Label TopNValue
Top 5 5 Top 10 10 Top 25 25 You can then use the Label column in your visual, and use MIN(TopNTable[TopNValue]) in a variable, and then use that variable in your TOPN measure expression
Dynamic TopN Measure =
VAR selTopN =
MIN ( TopNTable[TopNValue] )
RETURN
CALCULATE (
[your measure],
TOPN ( selTopN, DISTINCT ( Table[Clients] ), [your measure], DESC )
)Pat
DataVitalizer
Super User
5 years agoHi Gus_C
Could you please provide us with a drawing of what you are trying to acheive ? That would help us understand the request 👍.