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
Anonymous
Not applicable

line month to month in a stacked column chart that contains 2 sources of data Options

Hi

 

I'm new in Power BI and need some help! literally driving me crazy because in excel it's easy to do. 

In excel, the chart with line and stacked column chart is made with 2 sources of data (see screenshot below). If I select a project on the slicer that contains the data for the other source will show the line with the proper data by month. dashboard.jpgIn the case of Power BI, there is that option but don't know how to combine it. If I select on the slicer the Project that I want to review, only show the total of both years, not the total month to month. (see screenshot below)dashboard power bi.JPG

 

 

The matrix table on the top right corner it's showing the data month to month (Source "S4A DATA"), that's the line that want to add on the "line and stacked chart" on the low right corner (Source "Claims 2018..."). I add it but only show the total amount (as a steady line), not month to month. Please can you show me how can I do that?

 

Thank you.

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Usually, we can use such a middle table in a measure. I don't know what you are going to do. I only can suggest a formula like below, which creates a calculated table.

 

Table =
SUMMARIZE (
    'S4A DATA',
    'S4A DATA'[Crash_Date].[Year],
    'S4A DATA'[Crash_Date].[Month],
    'S4A DATA'[Project],
    "Count of Crash_Date", COUNT ( 'S4A DATA'[Crash_Date] )
)

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

There could be a missing relationship in Power BI. Different data sources are combined with the relationship in Power BI.

I would suggest you create a date table if you don't have one. Then establish proper relationships. 

If the suggestion doesn't help, please provide a dummy sample? Please don't share anything confidential. 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

The table that need to create I made it directly as a matrix table in power BI (see screenshot below)s4a table.JPG

 

 

 

This matrix table is pulling the info from"S4A DATA" source, "Project" as the rows and "Crash date" as the columns. Need to create this "matrix table" as a new source table, don't know exactly how.

Hi @Anonymous ,

 

Usually, we can use such a middle table in a measure. I don't know what you are going to do. I only can suggest a formula like below, which creates a calculated table.

 

Table =
SUMMARIZE (
    'S4A DATA',
    'S4A DATA'[Crash_Date].[Year],
    'S4A DATA'[Crash_Date].[Month],
    'S4A DATA'[Project],
    "Count of Crash_Date", COUNT ( 'S4A DATA'[Crash_Date] )
)

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Why post the exact same response twice in a thread? Obviously, if he didn't use your solution the first time, he chose not to use it (likely because it wasn't clear). Posting the same thing ad nausea is nothing but wasted bandwidth and a frustration to users. Yes, you may know the solution but do you know how to accurately convey it? 

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.