Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello folks,
I created a slicer to show the quarters but the slicer shows the numbers for each quarter i.e 1 2 3 4, however, I want this to be Q1, Q2, Q3 and Q4. I decided to use the concatenate function but the function takes only the text values and not the column reference. Any ideas how I can achieve this? I'll appreciate your help.
Thanks!
Solved! Go to Solution.
For some reasons your formula was not working but it gave me a hint. I just used switch function and it worked, so I added a a new column to the table with the switch formula mentioned below and it is now showing me what I wanted, but thanks a lot for taking the time out to look into my question. You deserve a kudos.
Hi @kashahzad ,
Create a Calculated Column in your Calendar Table.
QuarterName =
"Q"
& INT (
DIVIDE (
Calendar[MonthOfYear],
4
)
) + 1
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
If you are trying to add a column, you could use
Thank you for looking into it, I do not have the column with dates, I have separate columns for months, quarters and years, so this function does not fit.
Can you show what your columns look like?
You could try this:
Quarter =
VAR MonthName = Dates[Month]
VAR Result =
SWITCH (
TRUE (),
MonthName IN { "January", "February", "March" }, "Q1",
MonthName IN { "April", "May", "June" }, "Q2",
MonthName IN { "July", "August", "September" }, "Q3",
"Q4"
)
RETURN
Result
or
just used use Ampersand to concatenate: "Q " & QuarterOfYear
For some reasons your formula was not working but it gave me a hint. I just used switch function and it worked, so I added a a new column to the table with the switch formula mentioned below and it is now showing me what I wanted, but thanks a lot for taking the time out to look into my question. You deserve a kudos.
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 |
---|---|
10 | |
10 | |
10 | |
9 | |
7 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |