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,
I want to create a calculated measure for calculating cost percentage per supplier. I'm not able to get the exact formula that would give me column percentages:
I need a formula, specifically a calculated measure to perform the activity of column 'C' in the above picture.
Thanks for the help!:)
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new measure.
Expected result measure: =
VAR _qty =
SUM ( Data[Qty] )
VAR _qtyall =
CALCULATE ( SUM ( Data[Qty] ), ALL ( Data[Product] ) )
RETURN
DIVIDE ( _qty, _qtyall )
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new measure.
Expected result measure: =
VAR _qty =
SUM ( Data[Qty] )
VAR _qtyall =
CALCULATE ( SUM ( Data[Qty] ), ALL ( Data[Product] ) )
RETURN
DIVIDE ( _qty, _qtyall )
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |