cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NurNina
Post Patron
Post Patron

Customer price class

Hi, I have both model-driven and canvas apps that are using the same cds. I have to make a sales price according to the customer group (customer price class). However, I still do not understand the workaround of customer price class. How does the approach should be like? 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @NurNina ,

Could you please share a bit more about your scenario?

Is there a column called "Customer Group" in your Products Entity?

 

I assume that the Customer Group is a Option Set type column in your Products Entity, and there is a available option for this field -- "Customer Price Class".

 

If you want to get the Sales Price value (Sum value) based on the specific Customer Group value (e.g. 'Customer Price Class'), please take a try with the following formula:

Sum(
    Filter(
           Products,
           'Customer Group' = [@'Customer Group'].'Customer Price Class'
    ),
     'Sales Price'
)

Note: The 'Sales Price' represents the Number type column in your Products Entity.

 

If you could provide more details about your scenario, we could provide a proper workaround for you.

 

Best regards,

Community Support Team _ Kris Dai
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

4 REPLIES 4
eka24
Super User III
Super User III

What is the name of your table and what are the relevant columns

@eka24 for now, I just use the standard entity in cds, the Account and Product. The price is all inside the product entity

eka24
Super User III
Super User III

If you want to get the price based on selected group then:
Insert a dropdown and a textbox
In the items property of the dropdown put: Product.CustomerGroup
Then in the textbox put :
LookUp(Product,CustomerGroup=DropdownName.Selected.Value,SalesPrice)
v-xida-msft
Community Support
Community Support

Hi @NurNina ,

Could you please share a bit more about your scenario?

Is there a column called "Customer Group" in your Products Entity?

 

I assume that the Customer Group is a Option Set type column in your Products Entity, and there is a available option for this field -- "Customer Price Class".

 

If you want to get the Sales Price value (Sum value) based on the specific Customer Group value (e.g. 'Customer Price Class'), please take a try with the following formula:

Sum(
    Filter(
           Products,
           'Customer Group' = [@'Customer Group'].'Customer Price Class'
    ),
     'Sales Price'
)

Note: The 'Sales Price' represents the Number type column in your Products Entity.

 

If you could provide more details about your scenario, we could provide a proper workaround for you.

 

Best regards,

Community Support Team _ Kris Dai
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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (46,914)