Forum Discussion

DataGeek16's avatar
DataGeek16
Frequent Visitor
8 years ago
Solved

DAX Subquery For Stacked Bar Chart

Need help in converting the following code to DAX to use in a stackedbarchart visual value.   Select Sum(A) FROM (   Select SUM(EventCount) as A, DNSName        FROM Testtable         GROUP BY ...
  • popov's avatar
    popov
    8 years ago
    Sorry, below correct formula
    Measure = IF( CALCULATE ([Distinct Users], ALL( Testtable[DNSName] ) ) > 20 , SUM ( Testtable[EventCount] ) )