Forum Discussion
Jensej
Helper V
5 years agoSQL into Dax
Hello! I have a table in Power Bi with a Month Column Jan-Dec for year 2020. Now i want to a second column that shows the people who resigned in that month. In sql i would solve it like this bu...
Jensej
Helper V
5 years agoHI amitchandak
Thanks for your reply, if i do this i get this error message in the table visual. "A table of multiple values was supplied where a single value was expected"
amitchandak
Super User
5 years agoJensej , Can you share your measure
- Jensej5 years ago
Helper V
Measure 2 = VAR first= min(JF_BI_Datum[Datum]) VAR last= max(JF_BI_Datum[Datum]) RETURN calculate(countrows(JF_BI_Adr), filter(JF_BI_Adr,DATESBETWEEN(JF_BI_Adr[Resign_Date],first,last)))- amitchandak5 years ago
Super User
Jensej , Try like
Measure 2 =
VAR first= minX(allselected(JF_BI_Datum), JF_BI_Datum[Datum])
VAR last= maxX(allselected(JF_BI_Datum),JF_BI_Datum[Datum])RETURN
calculate(countrows(JF_BI_Adr), filter(JF_BI_Adr,DATESBETWEEN(JF_BI_Adr[Resign_Date],first,last)))- Jensej5 years ago
Helper V
Sadly still the same error 😞