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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
goncalves_iggor
Regular Visitor

Daily Changing Measure

Hey everyone!

 

I'm struggling with this problem it's been a while and I didn't get to any results. I also din't find any similar problem with a sollution, so I decide to ask for help here.

 

I have a data table conected with a list in sharepoint, where my team launches the amount of jobs they are doing every day.

When they start a job they launch it as "Open" and as they finished it, they change that line to "Closed".

 

So I create a measure (Today's Open Jobs) that calculate the amount of Open Jobs we have left the last day, and every morning I update Power BI to show me that measure up to dated.

 

Also, I create a the following table to register the amount of Open Jobs each day of the mounth:

image.pngWhere "Count" has the following formula:

Count = IF('DATABSE'[Date]  = TODAY(); [Today's Open Jobs]; BLANK())
 
The problem is that the value of the measure changes day by day, and the yesterday's value is lost. Also,
with the formula I've used, the collumn "Count" will only shows the value of today.
 
So I need a way to register the value of "Today's Open Jobs" in a way that the collumn "Count" will
fill itself day by day with the "Todays Open Jobs" of each day.
 
Hope someone can help me!
 
 
7 REPLIES 7
stevedep
Memorable Member
Memorable Member

Anonymous
Not applicable

It's not enough to capture TODAY's data. You have to capture the history. So, in other words, every day you have to grab what there is and store it somewhere, possibly in a database, or in a file. Jobs should have ID's, of course. With these, you'll be able to track them through time. But the requirement is that every day you have to have a NEW snapshot of the jobs and their statuses saved somewhere. Then you'll combine all the historical data into a fact table from which you'll then be able to calculate what you need.

Best
D

@Anonymous 

 

Exactly! Today I do it manualy in Excel. But that is exactly process de I want to "automatize" with power BI. As the responsible for the job changes it status from "open" to "Closed" instead of launch a new line, there is no history for status. I kinda need power bi to creat an "image" of the value, just like I do in Excel now.

Anonymous
Not applicable

As I said, every day you have to automate extracts and put them in the same folder. The names of the files should have a well-defined scheme as well. And then PBI can easily do the rest since Power Query can read a folder full of files with THE SAME STRUCTURE and load them all at once into a fact/dimension table(s).

So, use Power Query to your advantage.

Best
D
AlB
Community Champion
Community Champion

Hi @goncalves_iggor

What is the code for your [Today's Open Jobs] measure and what does the data te measure uses look like? We need more info to come up with a solution

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

@AlB 

My table collumns are basicaly: 'Job Id'; 'Job Title'; 'Responsible'; 'Request Date'; 'Delivery Date'; 'Status'; 'Comments'.

 

To get the [Today's Open Jobs] I'm using:

Today's Open Items =
CALCULATE(
    COUNTA('Jobs 2020'[Responsible]);
        'Jobs 2020'[Status]
            IN {
                "Closed: Cancelled";
                "Closed: Finished"
                }
    )

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.