Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Conditional Measure in DAX

$
0
0
Hi all,I have a measure that is a running total in a selected Month, as shown below;[code="other"]CumulativeCount:=TOTALMTD(COUNTA('ConsolidatedFiles'[DiligentaCode]),'- EffectiveAccountingDate'[DateKey])[/code]I need to add a condition on this based on another column (named AdminSystem). I basically want the following;IF AdminSystem = 'TB' THEN TOTALMTD(COUNTA('ConsolidatedFiles'[DiligentaCode]),'- EffectiveAccountingDate'[DateKey])ELSE COUNTA('ConsolidatedFiles'[DiligentaCode])Is there any way this can be done in DAX?Thanks in advance!

Viewing all articles
Browse latest Browse all 1341

Trending Articles