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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Angel
Resolver III
Resolver III

can i use same field for line and clustered columns?

Hi, everybody

 

I have an unique field called Net_Change_Actual.

 

I would like to use this field in the columns and  lines depending on some filters.

 

For example, (KPI_Code is another field in the query).

    Use clustered columns with KPI_Code 10,20 y 30

    Use line for KPI_Code 40

 

Any tip?

 

Thanks 

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @Angel,

In this case, create another table to filter the KPI_CODE which doesn’t equal to 40 , and create a calendar table, then set up relationships via Date column between the three tables and create Line and clustered column chart. You can check the result in the following screenshot.
111.PNG

 

Also you can download the modified PBIX file from this link: https://1drv.ms/u/s!AhsotbnGu1NogWZrbPXvKXsj6mCX  .


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
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

9 REPLIES 9
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @Angel,

In this case, create another table to filter the KPI_CODE which doesn’t equal to 40 , and create a calendar table, then set up relationships via Date column between the three tables and create Line and clustered column chart. You can check the result in the following screenshot.
111.PNG

 

Also you can download the modified PBIX file from this link: https://1drv.ms/u/s!AhsotbnGu1NogWZrbPXvKXsj6mCX  .


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @Angel,

What fields do you intend to put in the Shared axis, Column Values and Line Values of Line and clustered column chart ? It is ok to drag same field to Column Values and Line Values as follows, however, I am afraid the Line and clustered column chart doesn’t fit your scenario.
Capture4.PNG

In the following scenario, it is appropriate to use Line and clustered column chart to display data. You can check this article to get more information.
 
  • when you have a line chart and a column chart with the same X axis.
  • to compare multiple measures with different value ranges.
  • to illustrate the correlation between two measures in one visualization.
  • to check whether one measure meet the target which is defined by another measure
  • to conserve canvas space.

In addition, please help to share sample data and describe more details about what you want to display, so that we can recommend the appropriate visual for you.

Thanks,
Lydia Zhang

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

Hi, @Lidia

 

Thanks for your quick response.

 

The thing I want to do is to put Total flujo de efectivo in line  and the rest of datas in columns charts.

 

As you can see in the image, all data shares the same field Net_Change_Actual.

 

The shared axis is not showed in the image, but it's date.

 

Capture.jpg

 

Thanks,

 

Hi @Angel,

When you put the Total flujo de efectivo in line , does the visual work as expected? As I am not able to enlarge the screenshot, I will appreciate it if you can share me the PBIX file.


Thanks,
Lydia Zhang

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

Hi, @Lidia

 

¿How can I can share pbix file in the post?.

 

Thanks,

 

 

Hi @Angel,

You can upload pbix file to onedrive and post shared link of the file here.

Thanks,
Lydia Zhang

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

Hi @Angel,

Cretae a measure using the following formula and then drag it into Line Values as shown in below screenshot.

Measure = CALCULATE(sum(NorayHtlPowerBI[Net_Change_Actual]),FILTER(NorayHtlPowerBI,NorayHtlPowerBI[KPI_Code]="40"))

343.PNG

Thanks,
Lydia Zhang

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

Hi, @Lidia

 

I have tried the measure you have told me and it works.

 

The problem is if I use the measure for the line, I don't want to show the same data in column chart.

 

I have tried to filter KPI_CODE not showing value 40, but then neither the column chart and line is showed in the graph.

 

Any suggestion?.

 

Many thanks,

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.