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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

DAX - combine (not calculate) two different columns based on date

I have some migration data:

 

UserMigration

Key | IsMigrated | PlannedMigrationDate

 

I also have a date table that is related to PlannedMigrationDate.

 

I have PlannedMigrationDate as a Boolean calculated column so I can count the number of migrations that was supposed to happen that day.

 

Can I create a measure that would count the IsMigrated, and the PlannedMigrations by day?

 

So it would look like this so I could join it do a day in my Date "dimension":

 

MigrationStatus

24 / 26

1 ACCEPTED SOLUTION
waltheed
Impactful Individual
Impactful Individual

Hi Jasel,

 

Yes, sounds like you are almost there...

 

If you create measures that just count the rows in your table, like

Count of Migrations:= COUNTROWS('UserMigration')

and

Count of IsMigrated:= CALCULATE(COUNTROWS('UserMigration'), FILTER(IsMigrated = 1))

 

Then you can use these measures in a pivot table and show them by attributes of your Date Table like month, day, week, etc.

 

 

Cheers, Edgar Walther
ITsmart BI and Analytics consultant

View solution in original post

2 REPLIES 2
waltheed
Impactful Individual
Impactful Individual

Hi Jasel,

 

Yes, sounds like you are almost there...

 

If you create measures that just count the rows in your table, like

Count of Migrations:= COUNTROWS('UserMigration')

and

Count of IsMigrated:= CALCULATE(COUNTROWS('UserMigration'), FILTER(IsMigrated = 1))

 

Then you can use these measures in a pivot table and show them by attributes of your Date Table like month, day, week, etc.

 

 

Cheers, Edgar Walther
ITsmart BI and Analytics consultant
Anonymous
Not applicable

That did it sir.  Thank you very much for the help!

 

Now to find time to learn some intermediate DAX...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors