Forum Discussion
EmiliaB_123
5 years agoHelper II
DAX Function assistance
Hello everyone, I am struggling with a dax function. I have a column with zeros and ones as the column content, I need to count the zeros and the ones for a certain time period. With which dax formu...
- 5 years ago
Hey EmiliaB_123 ,
you would create a measure for the zeros like this one:
Zeros = CALCULATE( COUNTROWS(myTable) myTable[ColumnWithZeroValues] = 0 )And a similar for the ones and a normal COUNTROWS without the filter for all values. Then you can use all of the measures in the selected time period and you get your result.
If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic
selimovd
5 years agoMost Valuable Professional
Hey EmiliaB_123 ,
I would guess it's the relationship between the date table and the fact table.
Can you do a double click on the relationship in the relationship view and check if they are connected by the right column?
Best regards
Denis
EmiliaB_123
5 years agoHelper II