cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Andreasbs
Regular Visitor

Grouping columns to "X values"

Hi, i need some help to structure this the way i need to. 

In each column i have the forecasted value of a opportunity based on some assumptions we have calculated earlier. 

So for each row that represents a opportunity we will forecast a certain % of the revenue 0 weeks from now, 1 week from now etc. 

 

I want to view this in a line chart, and i need some logic for power BI to understand that column FCT 0 -10 are connected and means weeks from now. 

I need a calculation for the X axis 0-10 weeks, and the y value would be the total sum of the column. 

I hope someone can give me a hand with, preferably in DAX
- A 
Andreasbs_0-1682590724445.png

 

1 ACCEPTED SOLUTION
Wilson_
Solution Specialist
Solution Specialist

Hello,

 

Look into unpivoting your table's forecast columns. You can then aggregate by the different forecast periods and use the forecast period in one axis. There is (rightfully) no way that I'm aware of to string columns together.

 

If that doesn't make sense, it might be easier to show you what I mean If you upload your pbix file to a fileshare site then share a link


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

.

View solution in original post

3 REPLIES 3
Wilson_
Solution Specialist
Solution Specialist

Hello,

 

Look into unpivoting your table's forecast columns. You can then aggregate by the different forecast periods and use the forecast period in one axis. There is (rightfully) no way that I'm aware of to string columns together.

 

If that doesn't make sense, it might be easier to show you what I mean If you upload your pbix file to a fileshare site then share a link


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

.

Yes, thanks.. 

I found out that i needed a new table where and the forecast periods as rows. 

Yes, thanks.. 

I found out that i needed a new table where and the forecast periods as rows. 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors