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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
kleetus51
Frequent Visitor

Help on 2 custom columns

I'm building a price forecast model that will take historical pricing within a certain date range and purchasing recency. I've created a dates table and am using a slider to give me min/max dates, as well as a parameter based slider to define the recency curoff. Now I'm trying to tie those back to the price history table to determine whether each record is within threshold. Unfortunately my formulas aren't working, because I'm getting a True result regardless. Here are the two formulas and a screenshot. I would expect the values for the highlighted rows to be false. 

 

Within Date = 'Price History'[Date] >= MIN(Dates[Date])
Within Recency = 'Price History'[Recency] <= [Recency Cutoff]


kleetus51_0-1686074019918.png

 

1 REPLY 1
amitchandak
Super User
Super User

@kleetus51 , calculated column are static mean Min(Date[DAte]) will min date from table and there will no impact of slicer of join.

 

you have consider Measure

or when moving column cross table refer

 

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.