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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
rommel20
Resolver I
Resolver I

Column to Rows (Total)

Hi, Need help, I need to get the total revenue for each 0-14 days, 15-30 days etc. and here's my data.

 

DateClient Name0-1415-3031-6061-9091-180>180
1-JanClient 1$0.00$2,420.00$0.00$0.00$0.00$121.00
2-JanClient 2$0.00$0.00$0.00 $0.00$0.00
3-JanClient 3$0.00$0.00$0.00$0.00$121.00$0.00
4-JanClient 4$0.00$121.00$0.00$4,400.00$0.00$0.00
4-JanClient 5$0.00$0.00$0.00$0.00$0.00-$121.00
5-JanClient 6$0.00$0.00$0.00$0.00$121.00$0.00
7-JanClient 7$0.00$0.00$0.00$0.00$0.00$88.00

 

 

My Output is something like this, so that i can create bar graph

 

 Total
0-14$0.00
15-30$3,530.00
31-60$0.00
61-90$4,400.00
91-180$242.00
>180-$9.00

 

I also need to get the details when I click each range of days ( e.g list of client, revenue,date)

 

P.s I cannot use Pivot as the list will possible contain thousand (which convert to thousand columns)

 

0-14

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@rommel20,

After you unpivot columns in the table, filter out 0 from the Value column. Then when you click 15-30 days in the bar chart, you can show relevant clients and balance in table visual.

1.JPG2.JPG3.JPG4.JPG

Regards,
Lydia

View solution in original post

3 REPLIES 3
Datatouille
Solution Sage
Solution Sage

Hello,

 

Why can't you use Table.Unpivot ?

 

You will find attached my solution !

 

Let us know if it answers your questions!

Thanks! I already used Pivot table but my Problem now is I have other column e.g balance

 

so if I click  15-30 days bar graph  it will show  141 + 341 = 482 and also show the list of client.

 

Capture.JPG

 

 

 

Anonymous
Not applicable

@rommel20,

After you unpivot columns in the table, filter out 0 from the Value column. Then when you click 15-30 days in the bar chart, you can show relevant clients and balance in table visual.

1.JPG2.JPG3.JPG4.JPG

Regards,
Lydia

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.