Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am trying to build a string every time I make a selectiong from a filter I added from a table I added see the table below
The month the month that is selected in the filter must return the previous month string
e.g If the selected value is May the string must return APRFCST
If the selected value is Jun the string must return MAYFCST
If the selected value is Jul the string must return JULFCST
Month Num | Month Short |
Apr | 1 |
May | 2 |
Jun | 3 |
Jul | 4 |
Aug | 5 |
Sep | 6 |
Oct | 4 |
Nov | 8 |
Dec | 9 |
Solved! Go to Solution.
Hi @Anonymous,
Create slicer table as:
Slicer =
VALUES('Table'[Month Num])
Create column as:
Column =
CALCULATE(
MAX('Table'[Month Num]),
FILTER(
'Table',
'Table'[Month Short]=EARLIER('Table'[Month Short])-1
)
)
Create measure as:
Measure =
var _month=
CALCULATE(
MAX('Table'[Column]),
FILTER(
'Table',
'Table'[Month Num]=ALLSELECTED(Slicer[Month Num])
)
)
return
CONCATENATE(_month,"FCST")
Here is the output:
The demo is attached, please try it.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
Hi @Anonymous,
Create slicer table as:
Slicer =
VALUES('Table'[Month Num])
Create column as:
Column =
CALCULATE(
MAX('Table'[Month Num]),
FILTER(
'Table',
'Table'[Month Short]=EARLIER('Table'[Month Short])-1
)
)
Create measure as:
Measure =
var _month=
CALCULATE(
MAX('Table'[Column]),
FILTER(
'Table',
'Table'[Month Num]=ALLSELECTED(Slicer[Month Num])
)
)
return
CONCATENATE(_month,"FCST")
Here is the output:
The demo is attached, please try it.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
The below is what I am trying to achieve:
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
50 | |
45 | |
38 | |
38 |