Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have problem how to create "global year filter"
table:
Proj name | implemented | deleted |
Project 1 | 2010 | |
Project 2 | 2011 | 2014 |
Project 3 | 2012 | 2015 |
Project 4 | 2013 | |
Project 5 | 2014 |
And i have 2 measures which show number of implemented and deleted projects:
Measure1 :
year | Numer of implemented |
2010 | 1 |
2011 | 1 |
2012 | 1 |
2013 | 1 |
2014 | 1 |
Measure2
year | Numer of deleted |
2014 | 1 |
2015 | 1 |
I would like to create filter Year. For example if i choose 2014 measure should show:
year | Numer of implemented |
2014 | 1 |
year | Numer of deleted |
2014 | 1 |
I tried with this way https://www.sqlbi.com/articles/creating-a-slicer-that-filters-multiple-columns-in-power-bi/
but if I choose "2014" it shows:
year | Numer of implemented |
2011 | 1 |
2014 | 1 |
Thanks!
Solved! Go to Solution.
@mic_rys , I think you have to create a common year table and join it both years. One will be inactive, You can active that in measure using use relationship
This with date, you need for Year
New Table
Year = distinct(union(distinct(Table[implemented]),distinct(Table[deleted])))
Assume active join implemented
measure
implemented = countrows(Table)
deleted = calculate(countrows(Table), userelationship(Table[deleted], Year[implemented]))
@mic_rys , I think you have to create a common year table and join it both years. One will be inactive, You can active that in measure using use relationship
This with date, you need for Year
New Table
Year = distinct(union(distinct(Table[implemented]),distinct(Table[deleted])))
Assume active join implemented
measure
implemented = countrows(Table)
deleted = calculate(countrows(Table), userelationship(Table[deleted], Year[implemented]))
the simpliest solution looks the best! thank you!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |