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.
Hi There, I have the data as shown below. I need to write a measure in PowerBI that will look at the REPORT FROM date. Then it needs to put the AMOUNT in the correct columns according to the REDEMPTION DATE. Thus, if the REDEMPTION DATE falls within the 1 Month, 1-3 Month, etc. bracket it will put the AMOUNT into that column as shown below. In Excel I used If statements, I'm just not sure how to do it in PowerBI.
Solved! Go to Solution.
@Annemie19 , Create measures like
1 month =
var _max = maxx(allselected(Date),date[Date])
switch( true(),
datediff(max(Table[redemption Date]),_max,Month) <=1, max(Table[Amount]), blank())
1 -3 month =
var _max = maxx(allselected(Date),date[Date])
var _dif =datediff(max(Table[redemption Date]),_max,Month)
switch( true(),
_dif >1 && _dif <=3, max(Table[Amount]), blank())
@Annemie19 , Create measures like
1 month =
var _max = maxx(allselected(Date),date[Date])
switch( true(),
datediff(max(Table[redemption Date]),_max,Month) <=1, max(Table[Amount]), blank())
1 -3 month =
var _max = maxx(allselected(Date),date[Date])
var _dif =datediff(max(Table[redemption Date]),_max,Month)
switch( true(),
_dif >1 && _dif <=3, max(Table[Amount]), blank())
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |