Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
sabeensp
Helper IV
Helper IV

Percent by Customer

I have a very simple report which has a drop down filetr on Customer. I need to find out % of transaction of selected customer 
Table has Customers and Transactions

Cust ------- Transaction
A                 1

B                 1
C                1

D                1

A                1

A                1

 

I've created a measure COUNT(Transactions) which comes to 6 

I need to find out the % of Transactions by selected Cust. so If user select CUST A the 3/6 = 50% , if user selects B 1/6 = 16%, if none selected then 100%

 

Appreciate your help.

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @sabeensp,

 

You can new a measure:

Measure percentage =
COUNT ( 'Customertabble'[Transaction] )
    / CALCULATE ( COUNT ( 'Customertable'[Transaction] ), ALL ( 'Customertable' ) )

1.PNG2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @sabeensp,

 

You can new a measure:

Measure percentage =
COUNT ( 'Customertabble'[Transaction] )
    / CALCULATE ( COUNT ( 'Customertable'[Transaction] ), ALL ( 'Customertable' ) )

1.PNG2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.