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! Request now

Reply
hkpowerbi
Regular Visitor

Some formulas in Tableau that I need in Power BI

Hi All,

 

I just registered here because I am stuck with some issues and formulas that I am trying to create in PowerBI.

 

In Tableau, I have the following formula:

 

MAKEDATE(2017,[Month],1)

 

How would I replicate that logic in Power BI in a formula?

 

Another Tableau formula:

 

IF [Month] <= [CurrentMonth] THEN
DAY(DATETRUNC('month',DATEADD('month',1,[Makeitdate]))-1)
END

 

The [Makeitdate] in the second formula is derived from the first formula I provided above. Your help would be greatly appreciated. Thanks!

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Looks like the equiv of MAKEDATE is just DATE( ).  The 2nd one... I don't know tableau, so I can't guess.  What does it do?

View solution in original post

Anonymous
Not applicable

@hkpowerbi,

Create the following calculated columns in your scenario and check if you get expected result. If not, please share sample data of your table and post desired result here.

Mareitdate = DATE(2017,Table1[Month],1)
AddOneMonth = DATEADD(Table1[Mareitdate],1,MONTH)
FirstDay Of Month = DATE(YEAR(Table1[AddOneMonth]),MONTH(Table1[AddOneMonth]),1)
NewColumn = IF(Table1[Month]<Table1[CurrentMonth],DAY(Table1[FirstDay Of Month]-1))

Regards,

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@hkpowerbi,

Create the following calculated columns in your scenario and check if you get expected result. If not, please share sample data of your table and post desired result here.

Mareitdate = DATE(2017,Table1[Month],1)
AddOneMonth = DATEADD(Table1[Mareitdate],1,MONTH)
FirstDay Of Month = DATE(YEAR(Table1[AddOneMonth]),MONTH(Table1[AddOneMonth]),1)
NewColumn = IF(Table1[Month]<Table1[CurrentMonth],DAY(Table1[FirstDay Of Month]-1))

Regards,

Thank you all for the help. This got me started and I am playing around with it deeper now. I will feel free to post on here for further help. Wow, this community is very powerful!

Anonymous
Not applicable

Looks like the equiv of MAKEDATE is just DATE( ).  The 2nd one... I don't know tableau, so I can't guess.  What does it do?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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