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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

add a calculated column to the Date Table

Hi,

I need to add a calculated column to my date table to show 1 if the date = 2020.01.01 and if the date is = todate.The purpose is i need to show in my water fall chart x axis like this,

Mishelle_0-1598595845587.png

so im planning to make  a column to the date table and pick only "1" in a measure and place the measure into the x axis.Can anyone help me on this?

 

Thanks

Mish

5 REPLIES 5
Anonymous
Not applicable

@Anonymous 
I do not think make 1st jan and today = 1 is necessary.

 

Please see this doc to learn how to use Waterfall chart in power bi. To get the visuals link the image you need to put the date in the Category(x-axis) and sales in the Values(Y-axis), and add the breakdown column. You can also find a lot videos on YouTube if you search Power bi waterfall.

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

amitchandak
Super User
Super User

@Anonymous ,

not very clear

a new column like this

if([Date] =date(2020,01,01) || [date] =Today() ,1,0)

or

if([Date] >=date(2020,01,01) || [date] <=Today() ,1,0)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak 

1st formula is working for me.

 

Thanks

Mish

mhossain
Solution Sage
Solution Sage

@Anonymous 

 

So what's the challenge in creating a calculated column in your date table? You can either do it in Powerquery or in DAX environment, powerquery will be preferable, try to create ther a calculated field.

 

Are you facing the challenge in creating waterfall chart? Please explain more.

Anonymous
Not applicable

Hi @mhossain ,

I got a calculated column to show january 1st as 1 and todate as 1.Now i need to use this as X axis in waterfall visual as i have attached a screenshot in my original post.Is there a way to do this in the visual?

 

Thanks

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.