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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dashboard Logic and Question

Looking for some suggestions here with a dashboard I am creating for my business team.

 

I am trying to assign a value in a column based on a date.  Simply put is something is sold <= the 15th of the month, then "Early".  >15th of the month "Late".  

 

I have never done this as it petains to date and I am looking for suggestions.

 

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

In Power BI, a dashboard is an object in the power bi service. This sounds like you need a new column in one of your tables. You can create a calculated column using an if statement. The syntax is almost the same as excel

 

=if(day(table[date]) <=15,"Early","Late")



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

6 REPLIES 6
MattAllington
Community Champion
Community Champion

In Power BI, a dashboard is an object in the power bi service. This sounds like you need a new column in one of your tables. You can create a calculated column using an if statement. The syntax is almost the same as excel

 

=if(day(table[date]) <=15,"Early","Late")



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

@MattAllington

 

How can I concatenate the value of Early or Late with Month and Year?

 

i.e. June 2017 - Late

The same as you would in Excel.   table[Column1] & " - ' & table[Column2]



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

@MattAllington

 

I thought so as well, however the format is the full date display i.e. 12/12/2017 - Early

 

and I am looking for December 2017 - Early

 

If I format my date column to MM YYYY, once concatenated it displays 12/12/2017 - Early.  Once I concatenate I cannot reformat the date portion of the display.

 

Thanks again for your input - it's what powers the PBI community.

I was intending that you use the month column (sorry that wasn't clear)

 

=if(day(table[date]) <=15,Calendar[MM YYYY] & " - ' & "Early",Calednar[MM YYYY] & " - ' & "Late")

 

I guess this will also work

 

=if(day(table[date]) <=15,format(Calendar[date],"MM YYY") & " - ' & "Early",format(Calendar[date],"MM YYY") & " - ' & "Late")



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

@MattAllington

 

Thanks!

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.