This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
hello,
I am trying to create a calculated column where I am trying to flag only clients that are earning more thn $50,000 per year.
My main table is my clients table and that clients table is connected to a dates table called Fiscal Year.
This is the dax that I created:
Solved! Go to Solution.
Hi @OPS-MLTSD ,
DATESBETWEEN() returns a table that contains a column of dates that begins with a specified start date and continues until a specified end date.
This function is suited to pass as a filter to the CALCULATE function. Use it to filter an expression by a custom date range.
So you may try:
50000 Earning =
var _sum= CALCULATE(SUM(Clients[Wage]),DATESBETWEEN('Clients'[STARTDATE],MIN('fiscal Year'[Date]), MAX('fiscal Year'[Date])))
return SWITCH(TRUE(),[Currently_working]="Yes"&&_sum>=50000,"Yes","No")
Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Ideally you should solve this problem with a measure. If you need help with writing a measure, please share some data to work with.
Hi @OPS-MLTSD ,
DATESBETWEEN() returns a table that contains a column of dates that begins with a specified start date and continues until a specified end date.
This function is suited to pass as a filter to the CALCULATE function. Use it to filter an expression by a custom date range.
So you may try:
50000 Earning =
var _sum= CALCULATE(SUM(Clients[Wage]),DATESBETWEEN('Clients'[STARTDATE],MIN('fiscal Year'[Date]), MAX('fiscal Year'[Date])))
return SWITCH(TRUE(),[Currently_working]="Yes"&&_sum>=50000,"Yes","No")
Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thank you so much! it worked!
Hi,
I think the FILTER() function in DAX can filter rows based on the given conditions.
Here's the link: Using FILTER() as a Table function - Power BI Training Australia
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 25 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |