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,
I am new with this Var command and I am trying to do % calculation from Single column. I have the following New measure but it seems calculate all number. How can I filter based on Cost_Center and Month when I splice in table?
The result should be 0.42 which translate to 42% ( Total sum of rc and projected cost divided by rc)
Solved! Go to Solution.
@Irwan Thank you. I just realized that. I changed to "ALLSELECTED" and it seems working.
@Irwan Thank you. I just realized that. I changed to "ALLSELECTED" and it seems working.
Hi @sur27078,
Thank you for the update. Glad to hear that ALLSELECTED worked for you. If you encounter any other issues or need more clarification, feel free to reach out. We're here to assist.
Thank you.
hello @sur27078
it seems because of ALL function.
here is a simple example.
measure with ALL inside FILTER will have same value.
measure without ALL inside FILTER will have vary result because the value will depend on applied filter.
Hope this will help.
Thank you.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 18 | |
| 12 | |
| 11 |