Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello everyone
I am fairly new to Power BI and DAX in particular is still causing me a lot of problems.
I want to create a KPI tile with a time series (last 12 months) and the current/last value in the header. I use a line chart for this.
If I display the value directly in the line chart, everything is fine. But in the header the same logic it is not working.
In a table, however, the correct value is displayed in the time series, but the unfiltered total is still calculated under "Total". This somehow seems to be the cause, but I am totally lost solving the problem:
GTK per Monat Σ Gesamt Ende Label =
VAR MaxDate =
CALCULATE ( MAX ( '02 Kalender'[Datum] ), ALLSELECTED () )
RETURN
IF ( MAX ( '02 Kalender'[Datum] ) = MaxDate, [GTK per Monat Σ Gesamt] )
KPI HR GTK Header =
VAR MaxDate =
CALCULATE ( MAX ( '02 Kalender'[Datum] ), ALLSELECTED () )
RETURN
//CONVERT(MaxDate, STRING)
CONVERT(IF ( MAX ( '02 Kalender'[Datum] ) = MaxDate, [GTK per Monat Σ Gesamt] ), STRING)
I would be infinitely grateful if anyone has any advice.
Best regards
Jennifer
Solved! Go to Solution.
Hi @talespin ,
thank you for your reply. I didn't work out for my use case... I don't get it...
Nevertheless, I found a workaround - at least for my specific use case:
KPI HR GTK Header =
CONVERT(LASTNONBLANKVALUE('02 Kalender (Betrachtungszeitraum)'[Datum], [GTK per Monat Σ Gesamt]), STRING)
Kind regards!
hi @jmuth
I used a Calendar table and TestTable with one to many relationship.
Hi @talespin ,
thank you for your reply. I didn't work out for my use case... I don't get it...
Nevertheless, I found a workaround - at least for my specific use case:
KPI HR GTK Header =
CONVERT(LASTNONBLANKVALUE('02 Kalender (Betrachtungszeitraum)'[Datum], [GTK per Monat Σ Gesamt]), STRING)
Kind regards!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |