Forum Discussion
FabianB
3 years agoFrequent Visitor
DAX - Count all rows from a dimension table with values below a max in a fact table
Hi, I am trying to develop a DAX measure. I have a dimension table (dim_machines) that contains a name column. I have a fact table (machine_measurements), linked to the dimension table by this ...
- Anonymous3 years ago
Count Machines < 20 =
COUNTROWS(
FILTER(dim_machines,
NOT(COUNTROWS(FILTER(machine_measurements, machine_measurements[power] > 20 && machine_measurements[name] = dim_machines[name])) > 0)
)
)Hey could you try this and let me know if it works? Thanks! 🙂
Anonymous
3 years agoNot applicable
Count Machines < 20 =
COUNTROWS(
FILTER(dim_machines,
NOT(COUNTROWS(FILTER(machine_measurements, machine_measurements[power] > 20 && machine_measurements[name] = dim_machines[name])) > 0)
)
)
Hey could you try this and let me know if it works? Thanks! 🙂