Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Oros
Post Prodigy
Post Prodigy

Pricing Table

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.

 

Oros_0-1625498222429.png

 

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. 

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

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

 

View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

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

 

@DEDMOND  your solution works perfect!!!  Thank you so much for your great help.

Oros
Post Prodigy
Post Prodigy

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.

 

Oros_0-1625510163750.png

 

 

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.