Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I wanted to show historic data on my report using slicer, but once user filter out data using slicer CY sales is visible not PY sales.
How to avoid slicer to filter PY sales on table.
Thanks,
Hi @sbm_shubham ,
Let say the below is your CY sales measure
CYSales = CALCULATE([Sales], Calendar[Year] = YEAR(TODAY()))
then your PYSales will be
PYSales = CALCULATE([Sales], Calendar[Year] = YEAR(TODAY()) - 1)
This should give you the CYSales and PYSales even if some filter is going to be applied.
You can also use the Previous Year function for this.
The Below screenshot show two tables (with and without filter on year applied)
You can also share the DAX that you are using for getting better help from the community
Regards,
@JulieBunavicz
Thanks for quick reply.
I don't want to show only difference on the visual but the page having Fiscal Year slicer and that is not allowing visual to show sale of previous year.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
87 | |
81 | |
64 | |
49 |
User | Count |
---|---|
121 | |
109 | |
81 | |
67 | |
67 |