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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Geberle
New Member

Auto refresh for DAX tables

I have created a date table with a DAX expression similar to the following:

 

Kalender =
--
-- Start der Konfiguration

VAR StartJahr = 2008 -- Hier startet der Kalender
VAR EndeJahr = 2025 -- Hier endet der Kalender
VAR KalenderPrefix = ""

--- Ende der Konfiguration
--

VAR KalenderErsterTag =
    DATE ( StartJahr; 1; 1 )
VAR KalenderLetzerTag =
    DATE ( EndeJahr; 12; 31 )

VAR KalenderRoh =
    CALENDAR ( KalenderErsterTag; KalenderLetzerTag )

VAR KalenderBasis =
    GENERATE (
        KalenderRoh;
        VAR KalDatum = [Date]
        VAR KalJahr =
            YEAR ( [Date] )
        RETURN
            ROW (
                "Kalender JahrZahl"; KalJahr;
                "Kalender Jahr"; KalenderPrefix & KalJahr
            
            )
    )
RETURN
    SELECTCOLUMNS (
        KalenderBasis;
        "Datum"; [Date];
        "JahrZahl"; [Kalender JahrZahl];
        "Jahr"; [Kalender Jahr]
    )

The code works fine. But when I save the model as a PowerBI-Template (.pbit) and I try to reuse it in a new model, the will not generate automatically. Even if I safe the file as a .pbix file and reopen it. I allways have to manually refresh the table.

 

Is there a setting I can check?

 

Thanks for helping,

Georg.

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Geberle,

 

The latest version of Power BI Desktop seems to work for .pbix file. As for the template, you may give feedback via https://ideas.powerbi.com/forums/265200-power-bi.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Sam

 

Is there a difference between the store client and the client from the PowerBI website? I'm using the windows store client.

 

Greetings,

Georg

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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