Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have two tables
Table 1 lists sales
Table 2 is a commission struture
I have a measure that sums Table1[Amount] placed in a gauge with Year, month, Sales Rep slicers.
What I need to accomplish is a measure in another guage that determines the commission amount.
So i need to create something that sums Table1.[Total], then takes that value and looks to see into which range in Table2 that value falls, and returns the corresponding Table2.[Commission].
I have attempted to break up the ranges in Power Query with ={[Range Start]..[Range End]} and list all values to more easily find a corresponding value, but I end up with a table that has over 25M rows which is inefficient.
Any help is much appreciated.
Table 1
WBS1 | InvoiceNumber | Period | TransDate | InvoiceDate | TotalAmt | PR.Name | PR.ProjectCustomTabFields.Sales Rep | PR.Project Type | Amount |
19028.00.00 | 000000082142 | 202001 | 1/25/2020 12:00:00 AM | 2019-12-04T12:05:31.5270000 | -18219 | PG&E EGI Reconductor Projects | Person 1 | Engineering | 18219 |
19028.00.00 | 000000082265 | 202002 | 2/12/2020 12:00:00 AM | 2/12/2020 12:00:00 AM | -46339.39 | PG&E EGI Reconductor Projects | Person 2 | Engineering | 46339.39 |
19028.00.00 | 000000082365 | 202007 | 7/11/2020 12:00:00 AM | 4/2/2020 12:00:00 AM | -89113.33 | PG&E EGI Reconductor Projects | Person 3 | Engineering | 89113.33 |
Table 2
Range Start | Range End | Commission |
5000000 | 9999999 | 10000 |
10000000 | 14999999 | 15000 |
15000000 | 19999999 | 20000 |
20000000 | 24999999 | 25000 |
25000000 | 30000000 | 30000 |
Output would just be a number
It's being a buggar with uploading
Let's try this
Table 1
Table 2
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
11 | |
11 | |
8 |
User | Count |
---|---|
24 | |
18 | |
12 | |
11 | |
10 |