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.
Hello.
We have a pricing table for customers with diferrent price levels. From time to time, we temporarily change the value with starting date and ending date.
In Power Bi, how do we show the price if the ending date is future, else show the price with the blank ending date. For example, for P6 price, the price should show 14. But if the Power Bi report is run later
Thanks.
Solved! Go to Solution.
Hi @Oros ,
Please use the following measure:
Measure = IF(MAX('Table'[ENDING DATE])>TODAY(), CALCULATE(MAX('Table'[PRICE]),FILTER('Table','Table'[ENDING DATE] = MAX('Table'[ENDING DATE]))), CALCULATE(MAX('Table'[PRICE]),FILTER('Table','Table'[ENDING DATE] = BLANK())))
For more details, please refer to the pbix file.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @Oros ,
Please use the following measure:
Measure = IF(MAX('Table'[ENDING DATE])>TODAY(), CALCULATE(MAX('Table'[PRICE]),FILTER('Table','Table'[ENDING DATE] = MAX('Table'[ENDING DATE]))), CALCULATE(MAX('Table'[PRICE]),FILTER('Table','Table'[ENDING DATE] = BLANK())))
For more details, please refer to the pbix file.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hello.
We have a pricing table for customers with diferrent price levels. From time to time, we temporarily change the value with starting date and ending date.
In Power Bi, how do we show the price if the ending date is future, else show the price with the blank ending date. For example, for P6 price, the price should show 14. But if the Power Bi report is run later than August 31, 2021, the P6 value should be 16 (blank ending date).
Thanks
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 |
---|---|
68 | |
60 | |
51 | |
36 | |
36 |
User | Count |
---|---|
83 | |
72 | |
58 | |
45 | |
44 |