Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.