Forum Discussion
Anonymous
2 years agoNot applicable
Top & Bottom measure filter in same visual
Hi All, I am working on a measure I want to see my top & bottom in the same visual for that I have written the query mentioned below but when I get my bar graph visual and put the name on the X a...
amitchandak
2 years agoSuper User
Anonymous , Try a measure like this with TOPN or window
calculate(SUM(totalamount), KEEPFILTERS(SELECTEDVALUE(Slicer[Value]), ALLSELECTED(Table[Name]), CALCULATE(SUM(totalamount)),desc))
+ calculate(SUM(totalamount), KEEPFILTERS(SELECTEDVALUE(Slicer[Value]), ALLSELECTED(Table[Name]), CALCULATE(SUM(totalamount)),asc))
Just add top and bottom measure
Learn Power BI: Dynamic TOPN using TOPN/Window and Numeric parameter: https://youtu.be/vm2mdEioQPQ
- Anonymous2 years agoNot applicable
I am sorry I didn't understand do I replace this with the code that I have or add this in the code and do I apply anything on the visual filter ?