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 dateJoin 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.
I have a table like this in power BI. There is a client email and dates that this email transacted.
How can I get it to a format like this:
I need to figure out logic like this:
- client transacted in last 3 months
- client transacted in 3 months prior to last 3 month
I think two columns would do
Solved! Go to Solution.
You can create two columns, with the following dax, I'm assuming that date_order is the transaction date for the client email on which the calculation will be based on.
Last3Months =
IF(
[date_order] >= TODAY() - 90 &&
[date_order] <= TODAY(),
1,
0
)
_________________________________________________________________________
Prior3Months =
IF(
[date_order] >= TODAY() - 180 && [date_order] < TODAY() - 90,
1,
0
)
You can create two columns, with the following dax, I'm assuming that date_order is the transaction date for the client email on which the calculation will be based on.
Last3Months =
IF(
[date_order] >= TODAY() - 90 &&
[date_order] <= TODAY(),
1,
0
)
_________________________________________________________________________
Prior3Months =
IF(
[date_order] >= TODAY() - 180 && [date_order] < TODAY() - 90,
1,
0
)
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 |
---|---|
61 | |
61 | |
55 | |
38 | |
27 |
User | Count |
---|---|
85 | |
60 | |
45 | |
41 | |
39 |