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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Been racking my brain on this and have scoured this site and many others for an answer.
My data is in the following format:
| firstUserDefaultChannelGroup | sessions | year |
| Paid Search | 1000 | 2024 |
| Paid Search | 900 | 2023 |
| Referral | 100 | 2024 |
| Referral | 90 | 2023 |
| Organic Social | 1500 | 2025 |
| Organic Social | 1000 | 2024 |
| Organic Social | 750 | 2023 |
| Paid Other | 200 | 2024 |
| etc. | etc. | etc. |
I have Clustered Bar Chart built in the following way:
I have a slicer on the page for [year] that filters other visuals to show just the selected year, only 1 year may be selected at a time.
I need the Clustered Bar Chart above to only show the selected year and the previous year (i.e. 2024 is selected in slicer so the Bar Chart shows data for 2024 & 2023), other than that the above Bar Chart is exactly what I need.
I have tried the follwoing measure to create a new source for [sessions]:
Solved! Go to Solution.
Hi @cheezter88
To get the wanted result you need a disconnected years table ( for the slicer):
Then you can create a flag measure like :
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hi @cheezter88
To get the wanted result you need a disconnected years table ( for the slicer):
Then you can create a flag measure like :
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 136 | |
| 110 | |
| 50 | |
| 32 | |
| 29 |