Forum Discussion
Anonymous
6 years agoNot applicable
Filter table based on values from other table
I am using this DAX meassure to calculate total sales TotalSales = SUM(Sales[Amount]) and this ranking formula to rank the sales staff: RankSalesStaff = RANKX(ALL('Sales'[Staff_ID])...
AntrikshSharma
6 years agoCommunity Champion
Like this?
Rank =
IF (
HASONEVALUE ( Products[Brand] ),
RANKX ( ALLSELECTED ( Products[Brand] ), [Total Sales TREATAS] )
)Anonymous
6 years agoNot applicable
No, all product brands should be included regardless of what is selected on the slicer. Thanks so much for your patience AntrikshSharma
- AntrikshSharma6 years agoCommunity Champion
I think you do not want the slicer to impact the visual, right? In that case you should use the Edit Interactions option. Select the slicer and then click the icon on visual that looks like the top view of a screw.
- Anonymous6 years agoNot applicable
Hi Anonymous ,
A different Approach.
Create a Calculated Column in Sales Table.
States in State Table = LOOKUPVALUE(States[States],States[States],'Sales'[STATE])Then use this measure
TotalSales = CALCULATE(SUM('Sales'[Amount]),'Sales'[States in State Table] <> BLANK())Ranking = IF ('Sales'[TotalSales] <> BLANk(), RANKX(FILTER(ALL('Sales'[STATE],'Sales'[States in State Table]),'Sales'[States in State Table] <> BLANK()),[TotalSales]))Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)Did I answer your question? Mark my post as a solution!
- Anonymous6 years agoNot applicable
Thanks for your suggestion Anonymous. Is there a way to achieve this without having to create a calculated column?