Forum Discussion
ianvalleser21
2 years agoNew Member
DAX FILTERING
Hi, I need help. I have two tables connected in via Power BI relationship. The first table acts as the main one and then the second table contains the survey details for each items. I am trying to co...
Anonymous
2 years agoNot applicable
Hi ianvalleser21 ,
Based on your description, it appears that there is a problem with the dax formula that is not returning the expected counts from the second table.
You just need to filter the "Survey Data" table and here is the corrected formula:
SurveyCount =
CALCULATE (
COUNTROWS ( 'Survey Data' ),
FILTER ( 'Survey Data', 'Survey Data'[Surveys] = 1 )
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- ianvalleser212 years agoNew Member
Thank you for the answer. However, whenever I do that it's giving me a weird set of numbers in the table like this one.
End of Week Survey Scoure Count 1/6/2024 14,076 12/30/2023 14,076 12/23/2023 14,076 12/16/2023 14,076 12/9/2023 14,076 12/2/2023 14,076 11/25/2023 14,076 11/18/2023 14,076 11/11/2023 14,076 11/4/2023 14,076 - Anonymous2 years agoNot applicable
Hi ianvalleser21 ,
In your case, how are the table relationships constructed and can you provide some test data for me to troubleshoot.
Best Regards,
Adamk Kong