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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Sisko
Helper I
Helper I

Average problem in Chart line

 

Hi, I have problem with average value in chart line. How I get right value to line? Now I have used this function:  

Week Average =
       AVERAGEX (
             ADDCOLUMNS (
                     SUMMARIZE ( 'Table1', 'Date'[NameOfDay] ),
                      "Total", CALCULATE ( SUM ( 'Table 1'[Value] ))
                   ),
[Total]
)

keskiarvo.png

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @Sisko ,

According to your description, my understanding is that you want to calculate the average of each week, in this scenario, we can use the following DAX query directly:

CALCULATE(AVERAGE('Table 1'[Value]))

You can also create a calculated table with your above query, then use the above DAX query on this table.

Best Regards,

Teige

View solution in original post

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @Sisko ,

According to your description, my understanding is that you want to calculate the average of each week, in this scenario, we can use the following DAX query directly:

CALCULATE(AVERAGE('Table 1'[Value]))

You can also create a calculated table with your above query, then use the above DAX query on this table.

Best Regards,

Teige

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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