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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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?

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors