Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
72 | |
68 | |
41 | |
35 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
42 |