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
OCBB_SFAFPandA
Resolver I
Resolver I

How would I create a calculated group for each day average?

Hello,

 

I am trying to make a calculated group that can calculate the AVG (Sales $, Transactions count, etc) for each day (Sunday, Monday, ETC.)

 

I created the Calculated group in Tabular Editor and this is my formula, and there is one for each day. 

VAR WEEKDAYtable =
    FILTER (
        'date',
        date[TheDayName] = "Sunday"
    )
RETURN
    AVERAGEX ( WEEKDAYtable, SELECTEDMEASURE )

 I am running into this error. Would I need to use the calulate function somehow?

 

OCBB_SFAFPandA_0-1661375229627.png

 

1 REPLY 1
amitchandak
Super User
Super User

@OCBB_SFAFPandA , it should be selectedmeasure function

 

SELECTEDMEASURE()

 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.