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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have created two measure current year sales and previous year Sales and I have year Slicer
I have created table Customer wise current year and previous year sales
What I want is
When I select year then current year column name should show as selected year and previous year as (year - 1) eg year = 2023 then previous year = 2022
But If I dont select any year then It should give me only one column of overall sales customer wise and also If I select start year ie First Year then There wont be any Previous Year Data then should get only one column of current year
??
Please help me in this since stuck since 2 days and there is presentation in 10 Days ....
Solved! Go to Solution.
Hi,
its a bit tricky, however you can achieve that with few measures.
First, I created a sample table like below:
Then created below measures:
Now, for your column header, create 3 more measures:
when 2023 selected:
If this resolves your problem, then please mark it as Solution, Thanks!
Hi,
its a bit tricky, however you can achieve that with few measures.
First, I created a sample table like below:
Then created below measures:
Now, for your column header, create 3 more measures:
when 2023 selected:
If this resolves your problem, then please mark it as Solution, Thanks!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |