Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hello Dears ,
I need help in finding the increment values of the "rate card amount" for the below table based on the employee full name and the rate card dates and filter by Regular Item Only:
Employee Number | Employee Full Name | Rate Card Date | Year | Card Item Name | Card Item Amount | Increment Amount |
700 | Laith | 9/15/1997 0:00 | 1997 | Regular | 430 | |
700 | Laith | 2/27/2000 0:00 | 2000 | Regular | 430 | |
700 | Laith | 1/1/2005 0:00 | 2005 | Regular | 510 | |
700 | Laith | 1/1/2006 0:00 | 2006 | Regular | 670 | |
700 | Laith | 2/1/2006 0:00 | 2006 | Regular | 800 | |
700 | Laith | 9/1/2006 0:00 | 2006 | Regular | 1300 | |
700 | Laith | 1/1/2007 0:00 | 2007 | Regular | 1350 | |
700 | Laith | 1/1/2008 0:00 | 2008 | Regular | 1500 | |
700 | Laith | 3/1/2008 0:00 | 2008 | Regular | 1800 | |
700 | Laith | 1/1/2009 0:00 | 2009 | Regular | 2000 | |
700 | Laith | 1/1/2010 0:00 | 2010 | Regular | 2150 | |
700 | Laith | 2/1/2010 0:00 | 2010 | Regular | 2450 | |
700 | Laith | 1/1/2011 0:00 | 2011 | Regular | 2630 | |
700 | Laith | 1/1/2012 0:00 | 2012 | Regular | 2762 | |
700 | Laith | 1/1/2013 0:00 | 2013 | Regular | 2900 | |
700 | Laith | 4/1/2013 0:00 | 2013 | Regular | 3300 | |
700 | Laith | 1/1/2014 0:00 | 2014 | Regular | 3465 | |
700 | Laith | 1/1/2015 0:00 | 2015 | Regular | 3751 | |
700 | Laith | 1/1/2016 0:00 | 2016 | Regular | 3939 | |
700 | Laith | 3/31/2019 0:00 | 2019 | Bonus | 1973 | |
700 | Laith | 4/1/2019 0:00 | 2019 | Regular | 4097 | |
700 | Laith | 1/1/2020 0:00 | 2020 | Bonus | 8194 | |
700 | Laith | 2/28/2021 0:00 | 2021 | Bonus | 6146 | |
700 | Laith | 3/8/2022 0:00 | 2022 | Bonus | 10243 | |
700 | Laith | 3/1/2023 0:00 | 2023 | Bonus | 11951 | |
800 | Ibrahim | 3/31/2019 0:00 | 2019 | Bonus | 2450 | |
800 | Ibrahim | 4/17/2001 0:00 | 2001 | Regular | 370 | |
800 | Ibrahim | 1/1/2005 0:00 | 2005 | Regular | 420 | |
800 | Ibrahim | 3/13/2005 0:00 | 2005 | Regular | 520 | |
800 | Ibrahim | 1/1/2006 0:00 | 2006 | Regular | 570 | |
800 | Ibrahim | 2/1/2006 0:00 | 2006 | Regular | 630 | |
800 | Ibrahim | 10/1/2006 0:00 | 2006 | Regular | 705 | |
800 | Ibrahim | 11/1/2006 0:00 | 2006 | Regular | 730 | |
800 | Ibrahim | 1/1/2007 0:00 | 2007 | Regular | 800 | |
800 | Ibrahim | 1/1/2008 0:00 | 2008 | Regular | 890 | |
800 | Ibrahim | 1/1/2009 0:00 | 2009 | Regular | 1000 | |
800 | Ibrahim | 7/1/2009 0:00 | 2009 | Regular | 1160 | |
800 | Ibrahim | 1/1/2010 0:00 | 2010 | Regular | 1247 | |
800 | Ibrahim | 1/1/2011 0:00 | 2011 | Regular | 1334 | |
800 | Ibrahim | 1/1/2012 0:00 | 2012 | Regular | 1401 | |
800 | Ibrahim | 1/1/2013 0:00 | 2013 | Regular | 1471 | |
800 | Ibrahim | 1/1/2014 0:00 | 2014 | Regular | 1545 | |
800 | Ibrahim | 1/1/2015 0:00 | 2015 | Regular | 1622 | |
800 | Ibrahim | 3/1/2015 0:00 | 2015 | Regular | 1872 | |
800 | Ibrahim | 1/1/2016 0:00 | 2016 | Regular | 1966 | |
800 | Ibrahim | 3/1/2017 0:00 | 2017 | Regular | 2025 | |
800 | Ibrahim | 5/1/2017 0:00 | 2017 | Regular | 2450 | |
800 | Ibrahim | 4/1/2019 0:00 | 2019 | Regular | 2548 | |
800 | Ibrahim | 1/1/2020 0:00 | 2020 | Bonus | 3822 | |
800 | Ibrahim | 2/28/2021 0:00 | 2021 | Bonus | 3822 | |
800 | Ibrahim | 3/8/2022 0:00 | 2022 | Bonus | 6370 | |
800 | Ibrahim | 3/1/2023 0:00 | 2023 | Bonus | 6370 | |
900 | Yousef | 3/31/2019 0:00 | 2019 | Bonus | 4650 | |
900 | Yousef | 1/3/2004 0:00 | 2004 | Regular | 300 | |
900 | Yousef | 1/1/2005 0:00 | 2005 | Regular | 350 | |
900 | Yousef | 3/13/2005 0:00 | 2005 | Regular | 450 | |
900 | Yousef | 1/1/2006 0:00 | 2006 | Regular | 500 | |
900 | Yousef | 10/1/2006 0:00 | 2006 | Regular | 575 | |
900 | Yousef | 11/1/2006 0:00 | 2006 | Regular | 600 | |
900 | Yousef | 1/1/2007 0:00 | 2007 | Regular | 660 | |
900 | Yousef | 8/1/2007 0:00 | 2007 | Regular | 760 | |
900 | Yousef | 1/1/2008 0:00 | 2008 | Regular | 840 | |
900 | Yousef | 1/1/2009 0:00 | 2009 | Regular | 1100 | |
900 | Yousef | 2/1/2009 0:00 | 2009 | Regular | 1600 | |
900 | Yousef | 1/1/2010 0:00 | 2010 | Regular | 1720 | |
900 | Yousef | 1/1/2011 0:00 | 2011 | Regular | 1840 | |
900 | Yousef | 1/1/2012 0:00 | 2012 | Regular | 1932 | |
900 | Yousef | 1/1/2013 0:00 | 2013 | Regular | 2029 | |
900 | Yousef | 1/1/2014 0:00 | 2014 | Regular | 2130 | |
900 | Yousef | 1/1/2015 0:00 | 2015 | Regular | 2259 | |
900 | Yousef | 1/1/2016 0:00 | 2016 | Regular | 2372 | |
900 | Yousef | 3/1/2017 0:00 | 2017 | Regular | 2443 | |
900 | Yousef | 5/1/2017 0:00 | 2017 | Regular | 3100 | |
900 | Yousef | 4/1/2019 0:00 | 2019 | Regular | 3333 | |
900 | Yousef | 1/1/2020 0:00 | 2020 | Bonus | 6666 | |
900 | Yousef | 2/28/2021 0:00 | 2021 | Bonus | 9599 | |
900 | Yousef | 3/8/2022 0:00 | 2022 | Bonus | 9999 | |
900 | Yousef | 3/1/2023 0:00 | 2023 | Bonus | 9999 | |
670 | Nancy | 1/11/2004 0:00 | 2004 | Regular | 300 | |
670 | Nancy | 1/1/2005 0:00 | 2005 | Regular | 350 | |
670 | Nancy | 1/1/2006 0:00 | 2006 | Regular | 425 | |
670 | Nancy | 2/1/2006 0:00 | 2006 | Regular | 475 | |
670 | Nancy | 1/1/2007 0:00 | 2007 | Regular | 550 | |
670 | Nancy | 3/1/2007 0:00 | 2007 | Regular | 625 | |
670 | Nancy | 1/1/2008 0:00 | 2008 | Regular | 700 | |
670 | Nancy | 3/1/2008 0:00 | 2008 | Regular | 1000 | |
670 | Nancy | 1/1/2009 0:00 | 2009 | Regular | 1100 | |
670 | Nancy | 1/1/2010 0:00 | 2010 | Regular | 1183 | |
670 | Nancy | 2/1/2010 0:00 | 2010 | Regular | 1300 | |
670 | Nancy | 1/1/2011 0:00 | 2011 | Regular | 1382 | |
670 | Nancy | 1/1/2012 0:00 | 2012 | Regular | 1451 | |
670 | Nancy | 1/1/2013 0:00 | 2013 | Regular | 1524 | |
670 | Nancy | 4/1/2013 0:00 | 2013 | Regular | 1874 | |
670 | Nancy | 1/1/2014 0:00 | 2014 | Regular | 1968 | |
670 | Nancy | 1/1/2015 0:00 | 2015 | Regular | 2066 | |
670 | Nancy | 1/1/2016 0:00 | 2016 | Regular | 2169 | |
670 | Nancy | 3/1/2017 0:00 | 2017 | Regular | 2234 | |
670 | Nancy | 2/1/2018 0:00 | 2018 | Regular | 2684 | |
670 | Nancy | 3/31/2019 0:00 | 2019 | Bonus | 2684 | |
670 | Nancy | 4/1/2019 0:00 | 2019 | Regular | 2791 | |
670 | Nancy | 1/1/2020 0:00 | 2020 | Bonus | 5582 | |
670 | Nancy | 2/28/2021 0:00 | 2021 | Bonus | 8038 | |
670 | Nancy | 3/8/2022 0:00 | 2022 | Bonus | 8373 | |
670 | Nancy | 3/1/2023 0:00 | 2023 | Bonus | 8373 | |
70 | Sara | 1/20/2004 0:00 | 2004 | Regular | 140 | |
70 | Sara | 1/1/2005 0:00 | 2005 | Regular | 175 | |
70 | Sara | 1/1/2006 0:00 | 2006 | Regular | 225 | |
70 | Sara | 1/1/2007 0:00 | 2007 | Regular | 325 | |
70 | Sara | 8/1/2008 0:00 | 2008 | Regular | 375 | |
70 | Sara | 1/1/2009 0:00 | 2009 | Regular | 420 | |
70 | Sara | 7/1/2009 0:00 | 2009 | Regular | 500 | |
70 | Sara | 1/1/2010 0:00 | 2010 | Regular | 538 | |
70 | Sara | 1/1/2011 0:00 | 2011 | Regular | 576 | |
70 | Sara | 1/1/2012 0:00 | 2012 | Regular | 605 | |
70 | Sara | 1/1/2013 0:00 | 2013 | Regular | 640 | |
70 | Sara | 1/1/2014 0:00 | 2014 | Regular | 690 | |
70 | Sara | 5/1/2014 0:00 | 2014 | Regular | 750 | |
70 | Sara | 1/1/2015 0:00 | 2015 | Regular | 800 | |
70 | Sara | 1/1/2016 0:00 | 2016 | Regular | 840 | |
70 | Sara | 3/1/2017 0:00 | 2017 | Regular | 865 | |
70 | Sara | 4/1/2019 0:00 | 2019 | Regular | 905 | |
70 | Sara | 1/1/2020 0:00 | 2020 | Bonus | 1358 | |
70 | Sara | 2/28/2021 0:00 | 2021 | Bonus | 1358 | |
70 | Sara | 3/8/2022 0:00 | 2022 | Bonus | 1358 | |
70 | Sara | 3/1/2023 0:00 | 2023 | Bonus | 2335 | |
This could help.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("jZjNblNBDEZfpcq6Usb2/LJkh4RYwApVXQRUaKXSSilZ8PbcXG7CTK4/O900UnTkscdzPJm7u00JYXO7+bh7+v14M31oW0pbaq3chHfzN8fP07/PDz8Pz7v99ClK2NzfrkDectlyCOEEHj9fA9KWjlzquDRwiSwud1weuFzAQh2uBpVrHkeig8tCSweWCzBZYO3AOoJJjyguCHJcIrYObAM4byoEqdt8GjefSc+RXTBaxSHqQBrBbPUbcQfyCJbMBigdKCPY9OJEDxSzcyh2YBzBmJMBdmeKxjMlJZEBdk1OY5NLk6a3nMxk1zp0bJ33ry+Ht1kjRYzaXGKdNcLkH7hS7hqHQxevUotAU/XIdX3D1HGZYtbzm7Gua5j79AJHNb9/R5G7vWfpOWrLRtT56w/f9rvHp1/XVPR8MFbkVNNZxV2OYTwbUgDqyjgyIKdExfE4Ql2TJ7Rc1+UnB6xjBg8tIQHUXW+BUb1RcPIyIrHSa7NJ7HQKKGhxUcpmVMPrxLGYKDY7iUQTxW6nGMBxc+1Osdgo1jSliHrJEzVlZnjgHLQWgLqWp5azGbXrYBo7eBIcyDW5qGU0e0pwitXKFc4Jqai+3qTApDMrMrSvMyzOYJu//fp6eHv4cc2omG4JOkjb2dld54aLC0ZAoDMnBET0x0SEa/WmBFqrq/pUkk76vzHs+mDR56yD1QMLAP0BEU3QkjxIkl3SLo81HQqbpDEc7Dyt2dCELdK4+AduFoknA5OYq8V2Z05mTCx3lqLn6bs9LpfcS9JVu6Aecs0u05+RJxR7zssIW3et7fWWml5YR+utQc60+pk7vlfcbj7tXr7/WfKj6+S8Bq9zs85h2cVlsl9w7iU8FpVzHZn0dYrrVn2driGLXk//NSWYG3GFWVXQ0iNVwVthgWbPmHfuygZo3biXH7g6aNy3E0cNdF9TpnuvCvrX9JarARouDotrdNBQMWX17PsmZlFzXBqg61Uae5VzVUH3tQFw/s28NGP/ob5T0vvNs3cNou6hI+8qRT1QjrvP2Ex92e13c2YcbHFTDArlWJtKQhBWLzOEsD9FgaonQcHLwwI8vSb1kPvo8P/R+zKSIb60tIUCYemlkhGEhZcDKoThrAw7wvBVbmsoeVBJMBIWXMUlx3KrSk6u2GpeV891TIMlh34hSeuG8OSiQt7LsM6YWmGRKaH7vw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Employee Number" = _t, #"Employee Full Name" = _t, #"Rate Card Date" = _t, Year = _t, #"Card Item Name" = _t, #"Card Item Amount" = _t]),
#"Grouped Rows" = Table.Combine(Table.Group(Source, {"Employee Number"}, {{"A", each let t=Table.Sort(_,{{"Rate Card Date", Order.Ascending}}) in Table.RemoveColumns (Table.AddColumn ( Table.AddIndexColumn(t, "i",-1,1), "Increment", each try Number.From([Card Item Amount]) - Number.From(t[Card Item Amount]{[i]}) otherwise "" ), {"i"}), type table }})[A])
in
#"Grouped Rows"
it's not working, can you do it in a measure please
Thank you
User | Count |
---|---|
30 | |
26 | |
24 | |
13 | |
10 |
User | Count |
---|---|
24 | |
23 | |
18 | |
12 | |
9 |