Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I want a slicer with year and want parent level as current year and previous year. Also i need to drilldown to corresponding years.
My intention is to make my page always filtered to current year when user opens the report. Viewpoint required.
Thanks in advance
Solved! Go to Solution.
Hi, you need to create a caluclated column in date table with if condition.
CY_PY = if(year(date) = year(Now()),CY,PY)
Use this column first in filter and drag year column next to that.
Click the CY checked and publish the report.
Your are done.
Hi, you need to create a caluclated column in date table with if condition.
CY_PY = if(year(date) = year(Now()),CY,PY)
Use this column first in filter and drag year column next to that.
Click the CY checked and publish the report.
Your are done.
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 |
---|---|
78 | |
78 | |
58 | |
35 | |
32 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |