The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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;
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,
Hi @Avivek ,
What about using ALLSELECTED like below:
MONTH SALES =
CALCULATE ( [Sales Amount], ALLSELECTED ( 'Date'[Month Name] ) )
Regards,
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