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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
evadung
Frequent Visitor

Moving average excluding days without data

Hello, 

 

I have this chart with moving average. I dont want to see 4th and 5th day because theres no data (theres more date without data, 4th and 5th is for example). I have no clue what to do.

evadung_1-1676360046697.png

 

Its from calculated measure from two tables:

 

Table1: date, hours1
Table2: date, hours2

(In those tables arent days with null or blank spaces.)

 

calculated measure: Produtivität = hours1/hours2

 

Moving average % =

averagex(
    FILTER(ALLSELECTED(Kalender),
    Kalender[Datum] <= MAX(Kalender[Datum])),
        [Produktivität])
 
1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

Moving average % =IF( [Produktivität],

averagex(
    FILTER(ALLSELECTED(Kalender),
    Kalender[Datum] <= MAX(Kalender[Datum])),
        [Produktivität]))

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

Moving average % =IF( [Produktivität],

averagex(
    FILTER(ALLSELECTED(Kalender),
    Kalender[Datum] <= MAX(Kalender[Datum])),
        [Produktivität]))

Works! Thank you!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.