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.
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())
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 |
---|---|
11 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
9 |