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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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