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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

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_
Super User
Super User

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?)

.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
Wilson_
Super User
Super User

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?)

.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

Yes, thanks.. 

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

Anonymous
Not applicable

Yes, thanks.. 

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.