March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi to all,
I am trying to change dynamically a measure coherently with the value of a year slicer, but this is not working properly.
I have a:
- Year slicer with the column of a Table1 "Table1[Year]" which may have two years 2020, 2021
- measure on a Table2 which should be dependent on that slicer. I have tryed with three different solutions:
Solved! Go to Solution.
@gunicotra , This kind of measure is suitable if table 1 and table 2 are not connected
measure =
var _year = allselected(Table[Year])
return
CALCULATE(SUM(Table2[Counter]),filter(Table2 , Table2[CODE] in {"10", "11", "12","13","14"} && 'Table2'[YEAR] in _year))
because if they are connected , it will already have filter impact
I explained it here
Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE
@gunicotra , This kind of measure is suitable if table 1 and table 2 are not connected
measure =
var _year = allselected(Table[Year])
return
CALCULATE(SUM(Table2[Counter]),filter(Table2 , Table2[CODE] in {"10", "11", "12","13","14"} && 'Table2'[YEAR] in _year))
because if they are connected , it will already have filter impact
I explained it here
Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE
great solution! it works perfectly. Thanks 🙂
N.B.: "ANNO_CAMPAGNA" means "YEAR"
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |