Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi!
This is my first post... so thanks in advanced to anyone who can help me solve it! I have searched to dee a solution but couldn't easily find it so apologies of this has been solved before.
I have a table that has daily closoing bank balances in it. I am trying to create a DAX measure in Power BI that will return the previous day's balance so I can put as an opening balance comparison.
I have run the following DAX query:
Solved! Go to Solution.
Hi,
It is bit difficult to approach this without examples of data. One explanation that came to my mind is that your Bank Balances table's date data is not in the correct format. However, disregarding that here is one approach to this issue:
Example data:
measure:
PREVIOUSDAY should also work if you include ALL.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Thanks so much... that worked
I now realise my error. Previously I was referencing my dates table but I had prefilled this with dates for the full year so looks like it was pciking up a future date.
Once I used your suggestion and referenced the dates in the balance table it worked perfectly!
Hi @Anonymous
What is the granularity of the date column in the Balances table?
Hi,
It is bit difficult to approach this without examples of data. One explanation that came to my mind is that your Bank Balances table's date data is not in the correct format. However, disregarding that here is one approach to this issue:
Example data:
measure:
PREVIOUSDAY should also work if you include ALL.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
18 |