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

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.

Reply
Gumberculeez
Helper II
Helper II

Multi query sum showing only today's date

Hey All;

 

Curious how I can do this?  I have the multi query sum down...

 

Mileage plus Mileage =
SUM('SCInvLabor'[Mileage]) + SUM('SCOpenLabor'[Mileage])  
 
however, I'd like to add a filter to show just the above just for today.
 
an assist would be fantastic! 🙂
 

 

 

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Gumberculeez ,

 

than try this.

 

 

SELECT
*,
CAST(DispatchDate as Date) AS DispatchDate_New
FROM _custom_eviews.RTPowerBI (NOLOCK)

 

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

25 REPLIES 25
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Gumberculeez ,

create a date table

Date = 
ADDCOLUMNS (
        CALENDARAUTO( ); 
    "Year"; YEAR ( [Date] );
    "Month Name"; FORMAT ( [Date]; "mmmm" );
    "Month Number"; MONTH ( [Date] );
    "Weekday"; FORMAT ( [Date]; "dddd" );
    "Weekday number"; WEEKDAY( [Date] );
    "Quarter"; "Q" & TRUNC ( ( MONTH ( [Date] ) - 1 ) / 3 ) + 1;
    "Day of Month"; Day([Date])
)

add the relationship to the date table

Mileage plus Mileage =
CALCULATE(
SUM('SCInvLabor'[Mileage]) + SUM('SCOpenLabor'[Mileage]);  
'Date'[Date] = TODAY())

 

If I answer you question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


hmm... thanks for the assist here, 

 

Actually getting a syntax error with that : /

Annotation 2019-11-28 133606.png

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Gumberculeez ,

 

replace ; with , 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Thanks... that worked...

 

however, getting the same syntax error with the relationship...  changed to a "," with no results:

 

Almost there.png

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Gumberculeez 

 

the CALCULATE is missing...

 

Mileage plus Mileage =
CALCULATE(
SUM('SCInvLabor'[Mileage]) + SUM('SCOpenLabor'[Mileage]);  
'Date'[Date] = TODAY())

If I answer you question, please mark my post as solution, this will also help others.

Please give Kudos for support. 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.