March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a dataset in power BI that has the period, year, client identifier and debtors balance over a period of years for multiple clients.
I'm wanting to find out the current year and the latest period. For example, in the financial year starting in April 2022, in August of that year it will be 2023 for the current year and period 5 for the current month. I then want to use this information to calculate further fields.
I have created a measure to calculate the max on the year (the current year) which returns 2023, called 'Fees Balances'[Current Year]
I then wanted to use that to find the max period (the current period) on the periods with the year 2023, therefore I set up a measure:
Current Period = calculate(max('Fees Balances'[Period]),'Fees Balances'[Year]='Fees Balances'[Current Year])
but it's giving me the error message, "A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter expression. This is not allowed."
If I swapped in 2023 manually:
Current Period = calculate(max('Fees Balances'[Period]),'Fees Balances'[Year]=2023)
It worked, but the year will change, so wanted it to calculate it dynamically.
Thank you for your help
Best wishes
Ros
Solved! Go to Solution.
Thank you. I sorted it by bringing in a dates table only.
Thank you. I sorted it by bringing in a dates table only.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
127 | |
85 | |
69 | |
53 | |
44 |
User | Count |
---|---|
202 | |
106 | |
100 | |
64 | |
56 |