Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All
I have a DAX below but I like to update it to show blanks as zeros. Please could someone helps how to merge the DAX together:
Solved! Go to Solution.
@Apple08 Try:
YTD Age Group = var Max_AG_date = MAX ( 'fact_Staff_Data'[As at Date] )
--return Max_AG_date
var FiscalMth = Calculate ( Max ( dim_Dates[Fiscal Month] ),
Filter ( dim_Dates , 'dim_Dates'[Dates] = Max_AG_date )
)
return
CALCULATE ( [Count Age Group] ,
filter ( dim_Dates , 'dim_Dates'[Fiscal Month] = FiscalMth )
) + 0
@Apple08 Try:
YTD Age Group = var Max_AG_date = MAX ( 'fact_Staff_Data'[As at Date] )
--return Max_AG_date
var FiscalMth = Calculate ( Max ( dim_Dates[Fiscal Month] ),
Filter ( dim_Dates , 'dim_Dates'[Dates] = Max_AG_date )
)
return
CALCULATE ( [Count Age Group] ,
filter ( dim_Dates , 'dim_Dates'[Fiscal Month] = FiscalMth )
) + 0
It works! Many thanks Greg for the prompt reply. 🙂
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |