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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
sgeheeb
Resolver I
Resolver I

Measure to display status

Hi,

 

I am trying to do display the status of data processing in a table as such:

 

DateStatus
10.06.2020finished
11.06.2020finished
12.06.2020 (today)

in progress

 

The condition is very simple: If the date is today I want to display "in progress", for older dates I want to display "finished". The [Date] column in already in my data model (in a date table, along with other columns).

 

I know this can be done easily with a calculated column and a simple condition. It works fine if I do it in Power BI Deskotp / Service. However, the data model is supposed to the viewed as a pivot table in excel (Analyze in Excel from the Power BI Service). The pivot table will not let me drag the [Status] column into the Values section (nor will it let me use anything besides measures). 

 

Can the behavior described in the table above be achieved by using a measure? Or does anyone know how I can use my calculated column in the pivot table? The latter would be my preferred option.

 

Any help would be greatly appreciated.

1 ACCEPTED SOLUTION

Hi,

 

thanks for your answer. This code works fine as a calculated column, but not as a measure.

 

I just figured it out! Like this it works for me:

 

1. Keep the calculated column (e.g. [IsToday]) as it is

 

2. Create a measure:

 

Stauts = SELECTEDVALUE('Date'[IsToday])

 and use the measure in the pivot table.

 

Thanks for your help!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@sgeheeb ,

 

Is Today = if('Date'[Date]<=TODAY(),"Finised","in progress")

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

 

thanks for your answer. This code works fine as a calculated column, but not as a measure.

 

I just figured it out! Like this it works for me:

 

1. Keep the calculated column (e.g. [IsToday]) as it is

 

2. Create a measure:

 

Stauts = SELECTEDVALUE('Date'[IsToday])

 and use the measure in the pivot table.

 

Thanks for your help!

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.