The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I need to group Initiatives together and calculate the ROI sum for each Parent Intiative. When calculating the ROI sum for a Parent Intiative, each unique Intiative (or unique ID) should only be included in the sum once.
For example,
Parent Initiative: IG BI Data Pulls. So the Initiatives are IG BI Data Pulls Phase 1 and IG BI Data Pulls Phase 2. So the ROI sum is 16375+29275= 45650.
Currently I'm using the following DAX:
Solved! Go to Solution.
Hi @aarushirc14 ,
Here I suggest you to create a measure by below code.
PI ROI Yr 1 = SUMX(SUMMARIZE('ROI Table','ROI Table'[Parent Intiative],'ROI Table'[ROI]),[ROI])
Sample:
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @aarushirc14 ,
Here I suggest you to create a measure by below code.
PI ROI Yr 1 = SUMX(SUMMARIZE('ROI Table','ROI Table'[Parent Intiative],'ROI Table'[ROI]),[ROI])
Sample:
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @aarushirc14
Please try
PI ROI Yr 1 =
SUMX (
VALUES ( 'ROI Table'[Parent Initiative] ),
CALCULATE ( MAX ( 'ROI Table'[ROI] ) )
)
Hi @aarushirc14
Please try
PI ROI Yr 1 =
SUMX (
VALUES ( 'ROI Table'[Parent Initiative] ),
CALCULATE ( MAX ( 'ROI Table'[ROI] ) )
)
i think you can create a new ROI column and use the new column to do the calculation
Column = 'Table'[ROI]/CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[ID]))
Proud to be a Super User!
User | Count |
---|---|
58 | |
56 | |
55 | |
50 | |
32 |
User | Count |
---|---|
171 | |
87 | |
70 | |
46 | |
45 |