Forum Discussion
Return multiple elements with selectedvalue dax function
I have a report which has Month Unit, Month Sales, Qtr Unit, Qtr Sales, Year Unit and Unit Sales.The report has slicers for Month, Qtr and Year.
The measure created for the Month sales is;
4 Replies
- Icey
Community Support
- AnonymousNot applicable
WHy not create a date calendar with Year, Quarter and Month as Columns.
Then link your date calendar to you sales table on Date column.
Then create slicers on the Year / Qrtr / Month column of the date table
It saves you the trouble of working with DAX
- Payeras_BI
Solution Sage
Hi Avivek ,
What about using ALLSELECTED like below:
MONTH SALES = CALCULATE ( [Sales Amount], ALLSELECTED ( 'Date'[Month Name] ) )Regards,
- Payeras_BI
Solution Sage
Hi Avivek,
Please confirm if this is your expected output:
Let's say you select month JAN and FEB, year 2014 and no selection for Quarter.
Month Sales = Sales for 2014 JAN + 2014 FEB
Quarter sales = Sales for all 2014 1Q
Year Sales = Sales for all 2014
Is this what you want? If not detail further.
Regards,