Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I'm trying to use a measure to create a title for my page that updates based on the date selected in my slicer. My original measure updated perfectly fine, but my results looked funny (i.e. January 2016 was 12016, February 2016 was 22016...) I then added in a "format" function, but that seems to have broken the updating. Now it stays static at "January, 2016". Any idea why that is or what I can do to fix/get around this? These are my original and current formulas:
Original:
(Title) Selected Period = concatenate(month(FIRSTDATE('DateKey'[Date])), year(firstdate('DateKey'[Date])))
Current:
(Title) Selected Period = concatenate(format(month(FIRSTDATE('DateKey'[Date])),"mmmm")&", ", year(firstdate('DateKey'[Date])))
(Note: This was previously posted and deleted because I thought it was the result of a silly mistake. After checking, I realized I was wrong and am still dumbfounded...help!)
Solved! Go to Solution.
Hi @enlamparter,
If you use the function "format", then the function "month" isn't needed. You could try this:
New Selected Period =
CONCATENATE (
FORMAT ( FIRSTDATE ( 'Calendar'[Date] ), "mm" ) & ", ",
YEAR ( FIRSTDATE ( 'Calendar'[Date] ) )
)Or try this with @Anonymous' idea:
Selected Period =
FORMAT ( FIRSTDATE ( 'Calendar'[Date] ), "mm" ) & ", "
& YEAR ( FIRSTDATE ( 'Calendar'[Date] ) )Best Regards!
Dale
Hi @enlamparter,
If you use the function "format", then the function "month" isn't needed. You could try this:
New Selected Period =
CONCATENATE (
FORMAT ( FIRSTDATE ( 'Calendar'[Date] ), "mm" ) & ", ",
YEAR ( FIRSTDATE ( 'Calendar'[Date] ) )
)Or try this with @Anonymous' idea:
Selected Period =
FORMAT ( FIRSTDATE ( 'Calendar'[Date] ), "mm" ) & ", "
& YEAR ( FIRSTDATE ( 'Calendar'[Date] ) )Best Regards!
Dale
Thanks Dale, taking out the "month" function worked!
Check the icon next to the measure/column. Does it look like a calculator or a box with Fx in it? I'm wondering if you have created a calculated column by mistake.
It's a calculator! 😕
Ok, try dropping the concatinate formula and instead simply make use of the & symbol. Does this improve your outcome?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 47 | |
| 44 | |
| 20 | |
| 20 |
| User | Count |
|---|---|
| 73 | |
| 72 | |
| 34 | |
| 33 | |
| 31 |