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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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_
Memorable Member
Memorable Member

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_
Memorable Member
Memorable Member

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.