cancel
Showing results for
Did you mean:
Responsive Resident

## Add Percentage Values based on External Sales.

Hi Experts

How would you amend the current DAX Measure to add percenatge value based on External Sale. into the Measure to Column so the data and percentage values are as the excel file attached.

Excel File.

Sample PBIX

1 ACCEPTED SOLUTION
Responsive Resident

Solution to question the % values should take the following forum..

2020 Full Year =
VAR _external =
SUMX (
FILTER (
ALL ( Logistics_ ),
),
[__v_Act2020]
)
VAR _Duty =
SUMX (
FILTER (
ALL ( Logistics_ ),
),
[__v_Act2020]
)
VAR _DutyPercentage =
FORMAT(DIVIDE(_duty,_external,0),"0.0%;(0.0%)")
VAR _Inbound_Freight =
SUMX (
FILTER (
ALL ( Logistics_ ),
"Inbound Freight"
),
[__v_Act2020]
)
VAR _InboundPercentage =
FORMAT(DIVIDE(_Inbound_Freight,_external,0),"0.0%;(0.0%)")
VAR _Warehousing_Fixed =
9 REPLIES 9
Community Support

Hi @Route217 ,

Best Regards,

Henry

Responsive Resident

Hi henry

Responsive Resident

Morning Henry I have solved the question ill post solution later on - IT issues...

Community Support

Hi @Route217 ,

If this problem has been resolved, you can mark yourself or delete this post.🙂

Best Regards,
Henry

Super User IV

@Route217 , Try one of the two measures

divide(calculate([measure 2], filter(Logistics_,Logistics_[new_Reporting_header] ="External sales")),[Measure 2])

divide(calculate([measure 2], filter(Logistics_,Logistics_[new_Reporting_header] ="External sales")),calculate([Measure 2], allselected(Logistics_)))

Proud to be a Super User!

Responsive Resident

Solution to question the % values should take the following forum..

2020 Full Year =
VAR _external =
SUMX (
FILTER (
ALL ( Logistics_ ),
),
[__v_Act2020]
)
VAR _Duty =
SUMX (
FILTER (
ALL ( Logistics_ ),
),
[__v_Act2020]
)
VAR _DutyPercentage =
FORMAT(DIVIDE(_duty,_external,0),"0.0%;(0.0%)")
VAR _Inbound_Freight =
SUMX (
FILTER (
ALL ( Logistics_ ),
"Inbound Freight"
),
[__v_Act2020]
)
VAR _InboundPercentage =
FORMAT(DIVIDE(_Inbound_Freight,_external,0),"0.0%;(0.0%)")
VAR _Warehousing_Fixed =
Community Support

Hi @Route217 ,

Good job!😋

Best Regards,

Henry

Responsive Resident

Hi Amit - Any thoughts its not giving the values for the percentages???

Responsive Resident

Hi Amit

Well this give me Values and % in the same column???

Announcements