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
ldenney
Regular Visitor

Line & Clustered Column Chart

Hello Community -

I am working on a line and clustered column chart. The x axis is fiscal year end and the Y axis are an indicator. The columns are an indicator for a hospital and I need to add 4 benchmark lines with differing values by year. I'm using a slicer to filter the hospital. I'm having trouble organizing the data to accomplish this...I have tried everything in 1 file and I'm currently trying to use the hospital file with 4 joined tables containing data for each benchmark type, indicator and year. Any suggestions on how to accomplish this?

data_layout.pngflex_graph.pngThank you!

1 ACCEPTED SOLUTION

Hi @v-lid-msft 

 

I have tried the "cross filter direction" as both and it doesn't work. I will try the fiscal year column in another calendar table and let you know how it goes.

 

Regards -

View solution in original post

4 REPLIES 4
v-lid-msft
Community Support
Community Support

Hi @ldenney ,

 

We can also use the following measures as line values to meet your requirement:

 

State Acute Indicator 1 =
CALCULATE (
    SUM ( 'State Acute'[State Acute Indicator 1] ),
    FILTER (
        ALLSELECTED ( 'State Acute' ),
        [fy_end_dt] IN FILTERS ( 'Hospital'[Fiscal Year End] )
    )
)

 

State CAH Indicator 1 =
CALCULATE (
    SUM ( 'State Acute'[State CAH Indicator 1] ),
    FILTER (
        ALLSELECTED ( 'State CAH' ),
        [fy_end_dt] IN FILTERS ( 'Hospital'[Fiscal Year End] )
    )
)

 

US Actue Indicator 1 =
CALCULATE (
    SUM ( 'US Actue'[US Actue Indicator 1] ),
    FILTER (
        ALLSELECTED ( 'US Actue' ),
        [fy_end_dt] IN FILTERS ( 'Hospital'[Fiscal Year End] )
    )
)

 

US CAH Indicator 1 =
CALCULATE (
    SUM ( 'State Acute'[US CAH Indicator 1] ),
    FILTER (
        ALLSELECTED ( 'State US' ),
        [fy_end_dt] IN FILTERS ( 'Hospital'[Fiscal Year End] )
    )
)

 

Best regards,

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

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lid-msft
Community Support
Community Support

Hi @ldenney ,

 

We can try to set the "Cross Filter direction" as both for each benchmark table and hosptial table, or we can use a fiscal year column in another calendar table as the x-axis field.

 

Best regards,

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

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

Hi @v-lid-msft 

 

I have tried the "cross filter direction" as both and it doesn't work. I will try the fiscal year column in another calendar table and let you know how it goes.

 

Regards -

Hi @v-lid-msft - I was able to get the visualization to work last night by using the fiscal year column in another table and linking everything to that table. Thanks so much for your help. I will keep your other suggestion in mind.

 

Thanks a million!

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.