Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hi
I have a dynamic slicer which:
How can I write a DAX expression that show only the Sales of the last years based on the current selection of the year.
For Example:
-If I select 2015, the table should show only sales for the years 2015, 2014, 2013, 2012, 2011,2010
-If I select 2012, the table should show only sales for the years 2012, 2011 2010, 2009, 2008,2007
just want to note that I'm new to PowerBi so I really appreciate your help.
Solved! Go to Solution.
Hi @Vilas_Techie ,
This is my data:
You can create a new date table and use the data to create a slicer:
Then create a measure as a filter:
Hi @Vilas_Techie ,
This is my data:
You can create a new date table and use the data to create a slicer:
Then create a measure as a filter:
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
6 | |
2 | |
2 | |
2 | |
2 |