Forum Discussion

irenelitw629's avatar
irenelitw629
Helper II
4 years ago
Solved

DAX - VAR Measure help

Hi all,

 

I want to create a calculate measurement with VAR. Whenever account and BU workflow filters are selected, the measure will display corresponding closed amount.

 

Issue: when BU workflow filter is not selected, I expect the value return with total value or be blank. Right now it is not displaying correctly.

 

Example: in attached file, measure is showing $2m when workflow filter is not selected. it should show as $3.5m or blank..

 

Can anyone check what is wrong with my formula:

Measure = VAR _acct = MAXX((Sheet1),Sheet1[Account Name]&'Sheet1'[BU Workflow FY22])
Return
CALCULATE(SUM(Sheet1[USD Closed])
,filter(ALL(Sheet1),
Sheet1[Account Name]&'Sheet1'[BU Workflow FY22]= _acct))

 

Thanks!!

7 Replies