cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Route217
Responsive Resident
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.

https://www.dropbox.com/scl/fi/pku9r6ojigak7uv1otbiu/Values.xlsx?dl=0&rlkey=2gmprbli0xsw98dbijjbw3ro... 

 

Sample PBIX

https://www.dropbox.com/s/t1lbguwygrc5nzn/PLP_Test_2%20%281%29%20%281%29.pbix?dl=0 

 

 

1 ACCEPTED SOLUTION
Route217
Responsive Resident
Responsive Resident

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

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

View solution in original post

9 REPLIES 9
v-henryk-mstf
Community Support
Community Support

Hi @Route217 ,


Your original link has been deleted, can you re-provide the pbix file link?


Let me know immediately, looking forward to your reply.


Best Regards,

Henry

 

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

Hi @Route217 ,


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

Best Regards,
Henry

amitchandak
Super User IV
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_)))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Route217
Responsive Resident
Responsive Resident

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

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

View solution in original post

Hi @Route217 ,

 

Good job!😋

 

Best Regards,

Henry

Route217
Responsive Resident
Responsive Resident

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

Route217
Responsive Resident
Responsive Resident

Hi Amit

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

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.