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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
How to use a var with multiple values ?
Example:
Solved! Go to Solution.
Hi, @nicolast29 ;
Do you mean that dynamic changes based on slicer changes? If yes, you can try:
Measure =
CALCULATE(SUM('Table 2'[Value]),FILTER('Table 2',[Value] in VALUES('Table'[Value])))
The final show:
If not, can you share a simple data and result what you want to output?
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @nicolast29 ;
Do you mean that dynamic changes based on slicer changes? If yes, you can try:
Measure =
CALCULATE(SUM('Table 2'[Value]),FILTER('Table 2',[Value] in VALUES('Table'[Value])))
The final show:
If not, can you share a simple data and result what you want to output?
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @nicolast29 ,
Try below measure
CALCULATE(SUM(CAHebdo[CA]),CAHebdo[SectionAbaco] in {6,7,8,9})
If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!
Hi
This was how i did it in the past, but i wanted to improve with variable
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 151 | |
| 130 | |
| 109 | |
| 79 | |
| 54 |