Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
HB2104
Helper I
Helper I

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 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@HB2104 In DAX:

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


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Super User
Super User

@HB2104 In DAX:

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


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.