Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi everyone,
Can anyone help me to create a filter on months who have passed (True) and months ahead of us (False), with one distinction: if the month starts in the past, and continue to months ahead of us, than these months should also be labelled with 'True'. Here is a small sample set to make it more clear:
So, how can I create the third column myself in Power BI?
Thank you in advance.
| Customer_ID | Date | True/False |
| 1 | 1-10-2018 | True |
| 1 | 1-11-2018 | True |
| 1 | 1-12-2018 | True |
| 2 | 1-3-2020 | True |
| 2 | 1-4-2020 | True |
| 2 | 1-5-2020 | True |
| 2 | 1-6-2020 | True |
| 2 | 1-7-2020 | True |
| 3 | 1-6-2020 | False |
| 3 | 1-7-2020 | False |
| 3 | 1-8-2020 | False |
Solved! Go to Solution.
Perhaps:
TrueFalse Column =
VAR __Min = MINX(FILTER('Table',[Customer_ID] = EARLIER([Customer_ID)),[Date])
RETURN
IF(__Min < TODAY(),TRUE(),FALSE())
Perhaps:
TrueFalse Column =
VAR __Min = MINX(FILTER('Table',[Customer_ID] = EARLIER([Customer_ID)),[Date])
RETURN
IF(__Min < TODAY(),TRUE(),FALSE())
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |