Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pmazz63
Regular Visitor

Chart showing totals by quarters and months of current quarter

Hi all,

I am new to Power BI and trying to figure out how to achieve this; I spent several hours on failed attempts and also searching posts with similar challenges but could not find anything applicable to my requirements.

I need a chart (based on data produced every month) to show totals by past quarters and also by any month for the current (not completed) quarter. I have a date table and managed to group current quarters (months outside these groups are ungrouped) but the chart can only be sorted either alphabetically or by ascending/descending number, not chronologically:

pmazz63_0-1598971377007.png

I think this is because the group with grouped quarters (Q1 and Q2) and ungrouped months (July and August) is seen as text, and I can't figure out how to concatenate the quarters and months to show chronologically.

This is my date table structure:

pmazz63_1-1598971559452.png

pmazz63_2-1598971589838.png

Any help will be greatly appreciated.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

For such a setting you have to create a separate static table with the pieces of time you need (just the names), have a column in there that would order them according to your liking and then have a separate measure that would respect selections in such a table. The table would be disconnected and you'd calculate the measure's values via virtual relationships. Basically, you can create any disconnected table you want with any attributes/fields and any hierarchies and then create measures that will work in conjunction with this table and the fact table even without any relationships between them.

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

For such a setting you have to create a separate static table with the pieces of time you need (just the names), have a column in there that would order them according to your liking and then have a separate measure that would respect selections in such a table. The table would be disconnected and you'd calculate the measure's values via virtual relationships. Basically, you can create any disconnected table you want with any attributes/fields and any hierarchies and then create measures that will work in conjunction with this table and the fact table even without any relationships between them.
amitchandak
Super User
Super User

@pmazz63 , this kind of display is not possible in power bi , You can take both on-axis and expand.

or create a table using summarize and union and use that for display. But table would be static in nature

lbendlin
Super User
Super User

What you can try is do a quarter/month hierarchy on the x axis, and then only expand the current quarter. Assuming your month names are sorted by a monthnumber column that should give you the desired outcome.

Thanks @lbendlin I tried to do that but I must be doing something wrong as when I expand / drill Q3 (current quarter) the previous quarters disappear:

pmazz63_0-1599118396011.png

pmazz63_1-1599118460626.png

 

 

Don't drill in, only right click on Q3 and say "Expand Selection" 

For some reason I can only see "Expand to next level"

pmazz63_0-1599142780158.png

 

Anonymous
Not applicable

@pmazz63 

 

To get precisely what you want you have to pay attention to this piece I wrote before:

 

Basically, you can create any disconnected table you want with any attributes/fields and any hierarchies and then create measures that will work in conjunction with this table and the fact table even without any relationships between them.

Thanks @Anonymous I will definitely look at the option you suggested.

Hi @pmazz63 ,

 

Could you tell me if your problem has been solved? If yes, kindly accept the helpful answer as solution. And welcome to share your own solution. More people who encounter the same issue will benefit from it. If you are still confused about it, please share more details to us. 

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors