Forum Discussion
Dynamically applying commission percents
- 1 year ago
Hi BUNJ
Could you please provide sample data that fully represents your issue or question, in a usable format (e.g., Excel or CSV, not as a screenshot)?
-
Please ensure no sensitive or unrelated information is included.
-
Also, share the expected outcome based on the sample data you provide.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
-
To achieve this goal, you can create a new numerical parameter in Power BI with the following (Model ---> New Parameter --> Numerical)
In the window you can set up your paremters (behind the scene, it will create a disconnected table)
In our case, let call it: CommissionParameter
Then you just have to create a measure like this one:
Total New Commission =
VAR SelectedProductGroup = SELECTEDVALUE('YourTable'[Product Group])
VAR NewCommissionRate = SELECTEDVALUE('CommissionParameter'[New Commission %])
RETURN
SUMX(
'YourTable',
IF(
NOT ISBLANK(SelectedProductGroup) && NOT ISBLANK(NewCommissionRate) && 'YourTable'[Product Group] = SelectedProductGroup,
'YourTable'[Net Sales] * NewCommissionRate,
'YourTable'[Net Sales] * 'YourTable'[Commission Percent]
)
)
If it is not what you are trying to achieve, do not hesistate to give more details (like some dummy data sample)
- BUNJ1 year agoFrequent Visitor
Thanks for replying. This is what I am trying to do
- v-aatheeque1 year agoCommunity Support
Hi BUNJ
Could you please provide sample data that fully represents your issue or question, in a usable format (e.g., Excel or CSV, not as a screenshot)?
-
Please ensure no sensitive or unrelated information is included.
-
Also, share the expected outcome based on the sample data you provide.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
- v-aatheeque1 year agoCommunity Support
Hi BUNJ
To help us reproduce and troubleshoot your scenario, we requested to share a small sample dataset/file. Could you please provide that when convenient?
It will allow us to give you a more accurate and tailored solution.
-