Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Guys, I have a problem, I can't convert this select to PB's DAX, could someone help me?
>>SELECT count(*) as open_open FROM [BASE].[dbo].[Fact_Call] to where a.DateOpen <= '2022-10-31' and (a.StatusCalledID not in (4, 12) or (a.StatusCalledID in (4, 12) and a.DateClosing > '2022-10-31'))<<
Solved! Go to Solution.
Hello @aservan !
I think you want something like this:
open_open =
CALCULATE(COUNT([insert column]), OR(a.DateOpen <= DATE(2022,10,31) && NOT(a.StatusCalledID IN {4,12}), a.StatusCalledID IN {4,12} && a.DateClosing > DATE(2022,10,31)))
Hello @aservan !
I think you want something like this:
open_open =
CALCULATE(COUNT([insert column]), OR(a.DateOpen <= DATE(2022,10,31) && NOT(a.StatusCalledID IN {4,12}), a.StatusCalledID IN {4,12} && a.DateClosing > DATE(2022,10,31)))
TKS MANNNN!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |