Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi all,
I am working on creating a condition based on yearly filtering. Basically I have a year filter where I can select baseline year with another one either previous or ppy, for each year I have my sales values. I am trying to create a condition that showes If I have a value in the baseline year(current year) selected and no value in the second year selection then is True the measure will take the sales value, if there is value for both years selected then is false not value attributed.
I am not sure if this can be done in one dax function, I have tried to create one with max year and another with min year and atrribute the values accordingly but it's not working.
Looking forward for your support,
Thanks
Please clarify further what do you mean by 2nd year selection. If possible share a screenshot with some description
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 8 | |
| 8 | |
| 8 |