Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 70 | |
| 39 | |
| 34 | |
| 23 |