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
sigridr
Helper I
Helper I

Display column and row values for max

Hi, 

 

I have a dataset that looks something like this (just a lot bigger and with columns from 1 o'clock till 24). 

I know I can add a column for rowwise max values in query. But How do I then find the corresponding timestamp for that row? And how do I display it in a card or something like that in desktop? 

 

Thanks! 

 

DatoKl. 1Kl. 2Kl. 3Kl. 4
01.01.2022106,20100,20107,40110,40
02.01.2022114,60114,00111,60103,80
03.01.2022167,40118,80109,80120,60
04.01.2022136,80120,60120,00123,60
05.01.2022152,40134,40132,60138,00
06.01.2022150,00130,80131,40152,40
07.01.2022144,00130,80128,40136,80
2 ACCEPTED SOLUTIONS
sigridr
Helper I
Helper I

So I have an update: 

I used this: https://www.excelnaccess.com/finding-the-column-name-with-max-or-min-value/ 

And that worked fine. But if I have a data set like mine (i.e. dates instead of apples and oranges) - how do I get the max value to vary when I change my filters (between months) in desktop?

View solution in original post

Anonymous
Not applicable

Hi @sigridr ,

 

You can duplicate the table --> select [Kl. 1] to [Kl. 24] and unpivot the columns --> select [Dato] and Grouping -->  Merge Query --> Expand Columns.

vcgaomsft_0-1674028953931.png

vcgaomsft_1-1674028978557.png

vcgaomsft_3-1674029300709.png

vcgaomsft_5-1674029822458.png

vcgaomsft_6-1674029929714.png

Result:

vcgaomsft_7-1674030054154.png

Such data is well reflected in the change of maximum values by creating line charts in the desktop.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
sigridr
Helper I
Helper I

Thanks! That worked! 🙂 

 

Sorry for the late reply..!

sigridr
Helper I
Helper I

So I have an update: 

I used this: https://www.excelnaccess.com/finding-the-column-name-with-max-or-min-value/ 

And that worked fine. But if I have a data set like mine (i.e. dates instead of apples and oranges) - how do I get the max value to vary when I change my filters (between months) in desktop?

Anonymous
Not applicable

Hi @sigridr ,

 

You can duplicate the table --> select [Kl. 1] to [Kl. 24] and unpivot the columns --> select [Dato] and Grouping -->  Merge Query --> Expand Columns.

vcgaomsft_0-1674028953931.png

vcgaomsft_1-1674028978557.png

vcgaomsft_3-1674029300709.png

vcgaomsft_5-1674029822458.png

vcgaomsft_6-1674029929714.png

Result:

vcgaomsft_7-1674030054154.png

Such data is well reflected in the change of maximum values by creating line charts in the desktop.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

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.