Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

sql query to dax equivalent

Hello, I've been trying to solve an issue with my current dashboard and can't seem to find a solution. I have the right result when i check it on the database side with sql, but I just seem to be u...
  • Anonymous's avatar
    Anonymous
    4 years ago

    For someone looking for a possible solution to their problem, i eventually found it.

    similar to what amitchandak did but with a little tweak.

    countx(
      filter(
        values(dbw_inv_projecto[nome]),
        calculate(
          distinctcount(dbw_inv_proj_etapa[dimensao])
        )> 1
      ),
      calculate(distinctcount(dbw_inv_proj_etapa[dimensao]))
    )
     
    the end result can be presented in a card. but if you're looking for input for
    for a table, use amitchandak 's solution.
    hope this helps someone.