Forum Discussion

Pfoerster's avatar
Pfoerster
Icon for Helper III rankHelper III
6 years ago
Solved

Use fix value for all month

Hello, 

I am working on a report, where it is necessary, to use for my plan-period the value of december for the whole year. 

How can I do this? 

Currently, due to my source-table, the measure for calculating the budget volumes is:

StockEndBud = CALCULATE(SUM('Raw Data'[Stock End]),FILTER('Raw Data','Raw Data'[Scenario]="Budget"))
 
When I now use also a Filter for month ('Raw Data'[Month]="December"), I only receive in my visual a value for december, and all other month are blank. How can I solve this? 
  • Pfoerster's avatar
    Pfoerster
    6 years ago

    I got it ğŸ˜€:

    First: I build up an extra Date-Table (this solves nearly 80% of my problems!), and then, not used the "All" but "Allselected" formular.

     

    StockEndBud = CALCULATE(SUM('Raw Data'[Stock End]),FILTER(ALLSELECTED('Raw Data'),'Raw Data'[Scenario]="Budget"&&'Raw Data'[Month]=SELECTEDVALUE('Month'[Month])))
     
    Now, all other slicers seems to work. Thank you for all your input! 

7 Replies