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 have a question, I'm working with data that refers to the initiatives, each initiative has its buget but each of these initiatives could belongs to a one or more categories, how I can divide these total amount per category respecting the total of each initiative?
Solved! Go to Solution.
Hi @Anonymous ,
Here is my test data.
Then add the Budget column in the Table 2.
Budget =
CALCULATE (
SELECTEDVALUE ( 'Table'[Budget] ),
FILTER ( 'Table', 'Table'[Initiative] = 'Table (2)'[Initiative] )
)
Now you could use DIVIDE() function to get the result.
Measure =
VAR a =
CALCULATE (
AVERAGE ( 'Table'[Budget] ),
ALLEXCEPT ( 'Table', 'Table'[Initiative] )
)
VAR b =
CALCULATE (
AVERAGE ( 'Table (2)'[Budget] ),
ALLEXCEPT ( 'Table (2)', 'Table (2)'[Catagory] )
)
RETURN
DIVIDE ( b, a )
Hi @Anonymous ,
Here is my test data.
Then add the Budget column in the Table 2.
Budget =
CALCULATE (
SELECTEDVALUE ( 'Table'[Budget] ),
FILTER ( 'Table', 'Table'[Initiative] = 'Table (2)'[Initiative] )
)
Now you could use DIVIDE() function to get the result.
Measure =
VAR a =
CALCULATE (
AVERAGE ( 'Table'[Budget] ),
ALLEXCEPT ( 'Table', 'Table'[Initiative] )
)
VAR b =
CALCULATE (
AVERAGE ( 'Table (2)'[Budget] ),
ALLEXCEPT ( 'Table (2)', 'Table (2)'[Catagory] )
)
RETURN
DIVIDE ( b, a )
Do you have an example of your dataset and your desired results? I don't fully understand what you are trying to achieve.
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |