Forum Discussion
animebuff
Helper I
1 year agodax issue on months
left side visual is what by default we get in PBI what I need is left side visual without jan month because there is no data for jan month in fact table the logic I have written is if n...
animebuff
Helper I
1 year agobut, in my scenario divide dax will not change the results
and jan month is not present in fact table so I need to avoid it
danextian
Super User
1 year agowhat do you mean by ' in my scenario divide dax will not change the results"?
I tested this simple DIVIDE formula and it excludes january
- animebuff1 year ago
Helper I
danextian thanks for the reply,
but your logic will give correct results on month wise but if you drill down to region it will fail
bottom 2 ( 3 and 4 ) are based on the logic you gavemy expectation is I need to get 3rd (image) on month wise and 2rd (image) on region wise drill down
note: drill down done on nov month- danextian1 year ago
Super User
You can use ISINSCOPE to check whether a column is the level in a hierarchy of levels.
Measure02 = VAR numerator = CALCULATE ( DISTINCTCOUNT ( 'S rate'[success] ), 'S rate'[inclusion flag] = "Y" ) VAR denominator = DISTINCTCOUNT ( 'S rate'[success] ) VAR _pct = DIVIDE ( numerator, denominator ) RETURN IF ( ISINSCOPE ( region[region] ), _pct + 0, _pct )