The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |