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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
afabiano
Frequent Visitor

Database structure help

Im sure this can be done but I could use some guidance

 

I have table with about 40 columns appended from multiple tables. The first column are the dates where an "exceedance" was recorded. What I would like to do is have a single column for all the exceedances next to the date column. I would also like to know which column the data is coming from beside the result.  See the current structure below. Anyone think they can help with this? Thanks!

 

 

recorPowerBI.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Load this data into the Query Editor.  Select your Date column.  Then go to the Transform tab of the Ribbon, and click Unpivot Other Columns.  You can also right click on the Date column and get to this option from there.

 

That should give you what you're looking for.

View solution in original post

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@afabiano,

 

By the way, In DAX, you may take a look at the GENERATE Function similar to the CROSS APPLY condition in SQL.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Load this data into the Query Editor.  Select your Date column.  Then go to the Transform tab of the Ribbon, and click Unpivot Other Columns.  You can also right click on the Date column and get to this option from there.

 

That should give you what you're looking for.

Phenominal - thanks!

Anonymous
Not applicable

@afabiano, if this method worked for you, please consider marking the reply as a solution.  That way users will see a green check mark on the thread, and the solution will always stay at the top of the thread.

 

Cheers,

 

~ Chris

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.