Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello,
I have date table, date column 1:* fact table, date column. Two donut chart, left showing this year's data, other last years.
I try to add dynamic titles for two donuts, i.e. for curent year I managed to come up:
Solved! Go to Solution.
@Dom87326
Last Year label:
LY Date =
VAR __MIN = CALCULATE( MIN(Dates[Date]) , SAMEPERIODLASTYEAR(Dates[Date]) )
VAR __MAX = CALCULATE( MAX(Dates[Date]) , SAMEPERIODLASTYEAR(Dates[Date]) )
RETURN
"Date range: " & FORMAT( __MIN , "MMMM/YY") & " TO " & FORMAT( __MAX , "MMMM/YY")
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Dom87326
Last Year label:
LY Date =
VAR __MIN = CALCULATE( MIN(Dates[Date]) , SAMEPERIODLASTYEAR(Dates[Date]) )
VAR __MAX = CALCULATE( MAX(Dates[Date]) , SAMEPERIODLASTYEAR(Dates[Date]) )
RETURN
"Date range: " & FORMAT( __MIN , "MMMM/YY") & " TO " & FORMAT( __MAX , "MMMM/YY")
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
11 | |
9 | |
8 | |
7 | |
5 |
User | Count |
---|---|
24 | |
16 | |
15 | |
10 | |
7 |