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.
Here is my data table:
Buyer ID | Buyer Name | Credit Limit ($) | File Date |
001 | ABC | 2000 | 2024-01 |
001 | ABC | 1000 | 2023-12 |
001 | ABC | 1000 | 2023-11 |
002 | DEF | 5000 | 2024-01 |
003 | GHI | 4000 | 2023-12 |
003 | GHI | 3500 | 2023-11 |
I want to add a column to get the credit limit of last month of File Date, so that the new table will be:
Buyer ID | Buyer Name | Credit Limit ($) | File Date | Last Month Credit Limit($) |
001 | ABC | 2000 | 2024-01 | 1000 |
001 | ABC | 1000 | 2023-12 | 9000 |
001 | ABC | 900 | 2023-11 | |
002 | DEF | 5000 | 2024-01 | |
003 | GHI | 4000 | 2023-12 | 3500 |
003 | GHI | 3500 | 2023-11 |
Could you please teach me what DAX I can use in order to get the new column?
I tried to create a new column to show Last File Date using PREVIOUSMONTH, then add another column to get the limit by using LOOKUPVALUE, but there are circular dependencies detected.
Please help! Thank you very much!
Solved! Go to Solution.
make sure the file date is in date type and create a column
Proud to be a Super User!
make sure the file date is in date type and create a column
Proud to be a Super User!
Thank you so much!! I successfully added the desired column!
you are welcome
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
124 | |
114 | |
73 | |
65 | |
46 |