Forum Discussion
radissoufan
1 year agoNew Member
power bi function ALL strange behavior
Hello, I have single simple DAX Measure 2 = CALCULATE( COUNTA(Query1[target_lfs_agg.f_m_id]), ALL(Query1[target_lfs_agg.age_group]) ) the result is s...
- 1 year ago
first one is
Measure 2 = CALCULATE(COUNTA(Query1[target_lfs_agg.f_m_id]),ALL(Query1[target_lfs_agg.age_group]))
second one isMeasure 2 = CALCULATE(COUNTA(Query1[target_lfs_agg.f_m_id]),ALL(Query1[target_lfs_agg.age_group_id]))
the strange thing is that the result of the first image finally gave me a correct result when i included the (id) column which i used in sorting the description column with the all() functionMeasure 2 = CALCULATE(COUNTA(Query1[target_lfs_agg.f_m_id]),ALL(Query1[target_lfs_agg.age_group]),
ALL(Query1[target_lfs_agg.age_group_id]))
mdaatifraza5556
1 year agoSuper User
Hi radissoufan
I have tried with a sample dataset.
It's working fine.
Could you please share the PBIX file or the sample dataset?
Below is what I have tried.
Result = CALCULATE(
COUNTA('Table'[f_m_id]),
ALL('Table'[age_group])
)
I have also attached the pbix file you check it.