Forum Discussion

Kopek's avatar
Kopek
Icon for Helper IV rankHelper IV
6 years ago
Solved

measure filtering month range

Hi!

 

I have a below dataset:

 

LOBPortfolioProductJan-20Feb-20Mar-20Apr-20May-20Jun-20Jul-20Aug-20Sep-20Oct-20Nov-20Dec-20
Test 1Prt 1Prod 1100011001200130014001500160017001800190020002100
Test 1Prt 2Prod 2200021002200230024002500260027002800290030003100
Test 1Prt 3Prod 3300031003200330034003500360037003800390040004100
Test 1Prt 4Prod 4400041004200430044004500460047004800490050005100
Test 2Prt 5Prod 5500051005200530054005500560057005800590060006100
Test 2Prt 6Prod 6600061006200630064006500660067006800690070007100
Test 2Prt 7Prod 7700071007200730074007500760077007800790080008100
Test 2Prt 8Prod 8800081008200830084008500860087008800890090009100
Test 2Prt 9Prod 990009100920093009400950096009700980099001000010100

 

 

and I try to create measure showing my actuals  and forecast, and i have no idea what i do wrong!

 

Actuals = should be sum of January 2020 (in Feb it should be sum of Jan + Feb, and so on)

Forecast = should be sum of all months starting Feb till Dec (in Feb it should be all months March untill Dec  and so on)

 

I tired YTD, Claculate, and nothing works.

I unpivotted Jan-Dec columns, so instead  that i have attribute and value columns.

 

Please let me know which measure will work for me in that case!

 

Thanks in advance!

 

  • Hi Kopek ,

     

    check this out.

    PBIX

     

    Regards,

    Marcus

    Dortmund - Germany
    If I answered your question, please mark my post as solution, this will also help others.
    Please give Kudos for support.

2 Replies