Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have just started with Power BI and I have a scenario but could not figure out the solution .Below is sample data.
When a user select any 'Start Date' in 2019 from the slicer, instead of showing blank for Product A it should show previous date avaliable price , in this case '50'.
I have tried Earlier() and ISBLANK() to get this. @amitchandak @Greg_Deckler Any inputs to get this.
Product | Start Date | End Date | Price | Approved Date |
A | 1/1/2018 | 11/11/2020 | 50 | 6/11/2017 |
A | 11/12/2020 | 3/31/2021 | 60 | 6/11/2017 |
A | 4/1/2021 | - | 70 | 6/11/2017 |
B | 1/1/2019 | - | 100 | 12/5/2018 |
@vennajx , Try a measure like
measure =
var _1 = calculate(max(Table[Start_date]), allexcept(Table, Table[product]))
var _2 = sum(Table[price])
return
sumx(values(Table[Product]), if (isblank(_2) ,calculate(_2, filter(all(Table), Table[Date] =_1 )), _2))
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |