Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi guys,
I have a fact table like the one below:
Date Revenue Quantity
31/01/2021 1000 500
28/02/2021 2000 500
....
31/12/2021 3000 100
31/01/2022 4000 200
28/02/2022 5000 100
...
The fact table is connected to a data table: my goal is calculate the ASP (Revenue / Quantity) and set the ASP from the 31/12/2021 (30.00) for every row in the 2022 having a result like the following
Date ASP
31/12/2021 30.00
31/01/2022 30.00
28/02/2022 30.00
Can someone help me to figure out a simple measure to be used with the same logic in a report?
Thank you in advance,
E
Solved! Go to Solution.
I solved my issue with the following formula
I solved my issue with the following formula
ASP_21 = calculate ( Revenue / Quantity, 'Table'[DATE] =31/12/2021) return
IF ('Table'[DATE] <=31/12/2021,Revenue / Quantity, ASP_21)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |