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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
joshua1990
Post Prodigy
Post Prodigy

Set Result as Value for Today

Hello everybody!

I need some help to set a result of a measure as the value for today.

 

I have a fact sheet with the following structure:

ItemDate CreatedDate CompletedStatusValue
101.01.202010.01.2020100500
201.01.2020 50500

 

This table shows me all Orders in our system with the corresponding value, status etc...

Now I need to calculate the number of Orders that have a Status of 50. This result should be set as a value for today - just for today. There should be now values for other days.

 

How would you manage that?

Of course, I could add a calculated column with the date for today and filter on every order with Status 50, but how would you build that within a measure, without a calculated column?

 

 

Best Regards

9 REPLIES 9
az38
Community Champion
Community Champion

Hi @joshua1990 

what do you mean "for today" ?

what result do you expect based on your dummy data?

 

for example, you can try another calculated column 🙂

Column = CALCULATE(COUNTROWS('Table'), 'Table'[Status]=50)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thanks for your reply!

The fact sheet is linked to my calendar table with the column „Date Created“.
If I use your provided measure, it shows me the sum for the corresponding day/ date.
But I need a total sum which is set for today. The result should be placed for today in the pivot table.

How would you do that?
az38
Community Champion
Community Champion

@joshua1990 

if I understand you correct try

Measure = 
CALCULATE(
COUNTROWS('Table'), 
FILTER(ALL('Table'), 
'Table'[Status]=50 && (ISBLANK('Table'[Date Completed]) || 'Table'[Date Completed] > TODAY()) && 'Table'[Date Created] < TODAY() 
)
)

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Many thanks for your response. Unfortunately it is not what I am looking for. I would like the total to be assigned to today's date. The pivot table for today should contain the sum of all orders that have the status 50.

az38
Community Champion
Community Champion

@joshua1990 

how do you plan to define "orders assigned to today's date"?

do you need sum or count of orders?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Both, one for Count and one for Sum (Value)

az38
Community Champion
Community Champion

@joshua1990 what rule for  "orders assigned to today's date"? what is the orders? is it orders that have Date Created today or Date  Completed before today or what?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Just all orders with status 50, regardless an date
az38
Community Champion
Community Champion

@joshua1990 

these measures should work

CountOrders = CALCULATE(COUNTROWS('Table'), 'Table'[Status]=50)
SumOrders = CALCULATE(SUM('Table'[Value]), 'Table'[Status]=50)

 

if your status is not a whole number

CountOrders = CALCULATE(COUNTROWS('Table'), 'Table'[Status]="50")
SumOrders = CALCULATE(SUM('Table'[Value]), 'Table'[Status]="50")

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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