Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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 @Anonymous ,
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 47 | |
| 29 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 73 | |
| 39 | |
| 26 | |
| 24 |