Forum Discussion

Lenihan's avatar
Lenihan
Icon for Helper III rankHelper III
9 years ago
Solved

Cross Table formulas not working

Hi! Having some challenges again getting some dax basic formulas to do some proper calculations   The 3 tables relevant to this are : 1) All CIs 2) Config Metrics - Updated. 3) Data table (this...
  • Anonymous's avatar
    Anonymous
    9 years ago

    Hi Lenihan,

     

    Since you have the relationship between these tables, you can calculate based on date table.

     

    	% Updated =COUNTA('Config Metrics - Updated'[CI Identifier]) /CALCULATE(COUNTA('All CIs'[CI Identifier]),RELATED(Date[report Month]))

     

     

    in addition, you can also use current reporting month to calcualte.

     

    	% Updated =
    	var currMonth= max('Config Metrics - Updated'[Reporting Month])
    	return
    	COUNTAX(FILTER(ALL('Config Metrics - Updated'),'Config Metrics - Updated'[Reporting Month]=currMonth),[CI Identifier])
    	/
    	COUNTAX(FILTER(ALL('All CIs'),'All CIs'[Reporting Month]=currMonth),[CI Identifier])

     

     

    If above is not help can you share some sample file?

     

    Regards,

    Xiaoxin Sheng