Forum Discussion

HB2104's avatar
HB2104
Icon for Helper I rankHelper I
2 years ago
Solved

If than in PBI

Hi All -

 

Looking to create a new column below based on the schedule name it will take another columns values. So below example: anything in column schedule that starts with QTR will take Quarterly Count column values and anything in schedule called MTH will take Month Count values. Thanks! 

 

ScheduleMonth Count Quarterly CountNew Column
QTRREC18244
MTHREC186116
QTRREC18588
QTRREC1861212
MTHREC1823323
MTHREC18121

1 Reply

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    HB2104 In DAX:

    Column = IF( LEFT( [Schedule], 3 ) = "QTR", [Quarterly Count], [Month Count] )