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 August 31st. Request your voucher.
Hi All,
I have this table, which I am trying to create:
Risk Completion % by FiscalQuarter = [Reduction Completion]/ Grand total of [Reduction Opportunity] x 100%
Both [Reduction Completion] and [Reduction Opportunity] are measures.
I have tried but I just don't understand how to craft the DAX pls.
Appreciate your help pls.
Thank you.
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Risk completion %: =
DIVIDE (
[Reduction completion:],
CALCULATE ( [Reduction Opportunity:], ALLSELECTED ( 'calendar'[Year Quarter] ) )
)
Hi, @byWing
You can try the following methods.
Measure =
Var _Sumall=SUMX(ALL('Table'),[Reduction Opportunity])
RETURN
DIVIDE([Reduction Completion],_Sumall)
Is this the result you expected?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Risk completion %: =
DIVIDE (
[Reduction completion:],
CALCULATE ( [Reduction Opportunity:], ALLSELECTED ( 'calendar'[Year Quarter] ) )
)
Thank you for your reply. I tried it and it worked. 😃