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
janwillem
Frequent Visitor

Calculate percentage orders agreed

I have made a formule for calculate % how many orders agreed, as follow:

 

Offertes akkoord = COUNT ( 'om_orders' [Ordernr.] ) /

                                               CALCULATE (

                                                                    COUNT ( 'om_orders' [Offertenr.] );

                                                                    'om_orders'[type] = 10

                                                                    )

 

When I select a specific "Productgroup" or "Item" percentage doesn't change.

 

How can I fix this?

1 ACCEPTED SOLUTION
v-sihou-msft
Employee
Employee

@janwillem

 

Are "Productgroup" and "Item" column in same 'om_orders' table?

 

The issue should be related to the relationship between "Productgroup"/"Item" and 'om_orders' table. 

 

If "Productgroup" or "Item" can filter [type] column accordingly, it should work properly. See my sample below:

 

5.PNG

 

6.PNG

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Employee
Employee

@janwillem

 

Are "Productgroup" and "Item" column in same 'om_orders' table?

 

The issue should be related to the relationship between "Productgroup"/"Item" and 'om_orders' table. 

 

If "Productgroup" or "Item" can filter [type] column accordingly, it should work properly. See my sample below:

 

5.PNG

 

6.PNG

 

Regards,

TomMartens
Super User
Super User

Hey,

 

your percentages do not change, because of both parts of your division always consider the selected product item, for this reason one of your parts need something like this

CALCULATE(
  COUNT( ... )
  ,ALL('yourtable'[Product])
)

Hope this gets you started



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.