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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Average with Datesbetween

Hi,
I have some unexpected values that I dont understand why they appear.

 

I calculate a daily value using average called D_1 Auction as below:

restevez11_0-1666712500614.png

 

I also calculated a monthly average using my Dates Table called Fechas, and related to the table "Mibgas PVB"). I call this measure 

restevez11_1-1666712611643.png

As expected, with a monthly context, both measures are equal, but in the second one, the total average appears without any date.

restevez11_2-1666712760729.png

 

 Why this value appears and how can I get rid off it?


Thanks

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Solved using this measure:

D_1 Auction Promedio = IF( [D_1 Auction]=BLANK(),BLANK(),
 CALCULATE(
    [D_1 Auction],
    DATESBETWEEN(Fechas[Dia],STARTOFMONTH(Fechas[Dia]),ENDOFMONTH(Fechas[Dia]))
)
)
 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Solved using this measure:

D_1 Auction Promedio = IF( [D_1 Auction]=BLANK(),BLANK(),
 CALCULATE(
    [D_1 Auction],
    DATESBETWEEN(Fechas[Dia],STARTOFMONTH(Fechas[Dia]),ENDOFMONTH(Fechas[Dia]))
)
)
 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors