Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
62 | |
59 | |
56 |