Forum Discussion
matrix_user
Helper III
4 years agoSlicer DAX
1) I am trying to get all my options in the slicer to show values. Currently, I can only see values in the cluster column visual for “Y”: 2) If I click to “W” or “Q” or “M” no values show up i...
- 4 years ago
Hi matrix_user
This is one of the simplest and greatest ideas I've ever seen and I really thank you for for posting this.
A small fix and all good to go https://www.dropbox.com/t/vxCj7mCtgVRteRcNQTY Total : = SWITCH ( SELECTEDVALUE ( Slicer[Index Desc], 1 ), 1, CALCULATE ( SUM ( ScooterSales[Sold Cash] ), TREATAS ( VALUES ( Slicer[Period] ), 'Calendar'[Year] ) ), 153, CALCULATE ( SUM ( ScooterSales[Sold Cash] ), TREATAS ( VALUES ( Slicer[Period] ), 'Calendar'[YearQuarter] ) ), 165, CALCULATE ( SUM ( ScooterSales[Sold Cash] ), TREATAS ( VALUES ( Slicer[Period] ), 'Calendar'[Month] ) ), 5, CALCULATE ( SUM ( ScooterSales[Sold Cash] ), TREATAS ( VALUES ( Slicer[Period] ), 'Calendar'[Year&WeekNumber(a)] ) ), CALCULATE ( SUM ( ScooterSales[Sold Cash] ), TREATAS ( VALUES ( Slicer[Period] ), 'Calendar'[Year] ) ) )
tamerj1
Community Champion
4 years agoHi matrix_user
This is one of the simplest and greatest ideas I've ever seen and I really thank you for for posting this.
A small fix and all good to go https://www.dropbox.com/t/vxCj7mCtgVRteRcN
QTY Total : =
SWITCH (
SELECTEDVALUE ( Slicer[Index Desc], 1 ),
1,
CALCULATE (
SUM ( ScooterSales[Sold Cash] ),
TREATAS ( VALUES ( Slicer[Period] ), 'Calendar'[Year] )
),
153,
CALCULATE (
SUM ( ScooterSales[Sold Cash] ),
TREATAS ( VALUES ( Slicer[Period] ), 'Calendar'[YearQuarter] )
),
165,
CALCULATE (
SUM ( ScooterSales[Sold Cash] ),
TREATAS ( VALUES ( Slicer[Period] ), 'Calendar'[Month] )
),
5,
CALCULATE (
SUM ( ScooterSales[Sold Cash] ),
TREATAS ( VALUES ( Slicer[Period] ), 'Calendar'[Year&WeekNumber(a)] )
),
CALCULATE (
SUM ( ScooterSales[Sold Cash] ),
TREATAS ( VALUES ( Slicer[Period] ), 'Calendar'[Year] )
)
)
matrix_user
Helper III
4 years agotamerj1... a big thank you to you!