Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have timestamps for some of my data in the format of mm/dd/yyyy hh:mm:ss and would like to use these timestamps to compare the data from Today and Yesterday. I am measuring data of production and want to show, if it is 10am today, what is the data for today(midnight to 10am) vs yesterday(midnight to 10am). Is this something that is possible in power bi? I have the measures for today and yesterday values shown below
Today Products Made= if(ISBLANK(CALCULATE(SUM('# Products'[Count(Products)]),'# Products'[Date] = TODAY())), 0, CALCULATE(SUM('# Products'[Count(Products)]),'# Products'[Date]=TODAY()))
Yesterday Products Made= if(ISBLANK(CALCULATE(SUM('# Products'[Count(Products)]),'# Products'[Date] = TODAY()-1)), 0, CALCULATE(SUM('# Products'[Count(Products)]),'# Products'[Date]=TODAY()-1))
Could someome please help with the query to include the current time today and match it with data from yesterday before the same time?
Solved! Go to Solution.
Found a solution to this problem.
I had to create 4 new columns:
Found a solution to this problem.
I had to create 4 new columns: