cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous20
Regular Visitor

How to calculate percentage for every client using DAX

How to calculate % for every client with reference to completion status of order / total number of products sold to that client in PowerBi using DAX

 

Example:

 

(Client Code)(Complettion Status)(Total of product)
ABC0.51
ABC0.81
DEF0.41
GHI11

 

I want the output to look like this:

ABC65%
DEF40%
GHI100%

 

 

Thank you.

 

 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous20 

please try

AVERAGEX ( 

    'Table',

    'Table'[Complettion Status] * 'Table'[Total of product]

)

View solution in original post

2 REPLIES 2
Anonymous20
Regular Visitor

Thank you @tamerj1 , this worked for me

 

tamerj1
Super User
Super User

Hi @Anonymous20 

please try

AVERAGEX ( 

    'Table',

    'Table'[Complettion Status] * 'Table'[Total of product]

)

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

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

Top Solution Authors
Top Kudoed Authors