Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Community,
I have one requrement , they want to show Quarter months name in axis as discribed below
i.e for Q1, (if jan , feb and Mar data avalible in Source file then it should display axis as (Jan-Mar 21)
if for Q2, if data avalibe for Apr only then axis should be (Apr 21)
,if Apr and May data avalible then axis should display as (Apr-May 21), if data avalible for Apr, May and Jun axis should be (Apr-Jun 21)
Same for all Quarters
Could spme onle Please help me with This requirement.
Thanks ,
Naga Karthik
Solved! Go to Solution.
Hi @naga449 ,
The result is this
First add a quarter column and month column, and then find the largest month and smallest month of each quarter, and merge them.
Quarter = [Date].[Quarter]
Month = FORMAT([Date],"MMM")
Quarter Month Name =
VAR _MaxMonth =
CALCULATE (
MAX ( 'Table (2)'[Month] ),
FILTER ( ALL ( 'Table (2)' ), [Quarter] = EARLIER ( 'Table (2)'[Quarter] ) )
)
VAR _MinMonth =
CALCULATE (
MIN ( 'Table (2)'[Month] ),
FILTER ( ALL ( 'Table (2)' ), [Quarter] = EARLIER ( 'Table (2)'[Quarter] ) )
)
RETURN
IF (
_MaxMonth = _MinMonth,
_MaxMonth & " "
& YEAR ( [Date] ),
_MinMonth & "-" & _MaxMonth & " "
& YEAR ( [Date] )
)
You can check more details from the attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @naga449 ,
The result is this
First add a quarter column and month column, and then find the largest month and smallest month of each quarter, and merge them.
Quarter = [Date].[Quarter]
Month = FORMAT([Date],"MMM")
Quarter Month Name =
VAR _MaxMonth =
CALCULATE (
MAX ( 'Table (2)'[Month] ),
FILTER ( ALL ( 'Table (2)' ), [Quarter] = EARLIER ( 'Table (2)'[Quarter] ) )
)
VAR _MinMonth =
CALCULATE (
MIN ( 'Table (2)'[Month] ),
FILTER ( ALL ( 'Table (2)' ), [Quarter] = EARLIER ( 'Table (2)'[Quarter] ) )
)
RETURN
IF (
_MaxMonth = _MinMonth,
_MaxMonth & " "
& YEAR ( [Date] ),
_MinMonth & "-" & _MaxMonth & " "
& YEAR ( [Date] )
)
You can check more details from the attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hol good afternoon
I applied the indications but I have a problem when presenting the months of the quarter, since although the January-March quarter is presented correctly "Jan-Mar", in the other quarters this does not happen, April-June appears as "Apr-May", July-September as "Aug-Sep" and October-December as "Dec-Oct". I appreciate any help you can give me.
Hi Stephen ,
Thanks for your Help in finding the resolution, You Have given me the idea to resolve the Issue . But my issue resolves with below dax .
Thanks ,
Naga Karthik
Hi @naga449 ,
Sorry to disturb you...
But did I answer your question ? Please mark my reply as solution. Thank you very much.
Best Regards,
Stephen Tao
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
102 | |
99 | |
38 | |
37 |
User | Count |
---|---|
158 | |
125 | |
76 | |
74 | |
63 |