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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Max of a slider as a column in my data

Hi,

 

YearMonthFac1Amount
202010118
202011166
202025367
202039282
202032214
202053296
202074414

 

I have created a slicer on 'Fac1' in above table. I want to print the max of slider as a column in the above dataset. 

Example:

 

if my slider is set from values 0 to 3... then my new data should appear like below:

Slicer.PNG

YearMonthFac1AmountMax_Fac1
2020101183
2020111663
2020253673
2020392823
2020322143
2020532963
2020744143

 

Many Thanks

 

14 REPLIES 14
v-xulin-mstf
Community Support
Community Support

Hi, @Anonymous 

You can use the following method to meet your needs:

Step1: Create a slicer table as:

slicer Table =

VALUES(Table1[Fac1])

v-xulin-mstf_0-1608862380720.png

 

Step2: Create a measure as:

Max_Fac1 =

var _table=CALCULATETABLE(VALUES('slicer Table'[Fac1]),ALLSELECTED('slicer Table'))

var _maxvalue=MAXX(_table,'slicer Table'[Fac1])

Return

_maxvalue

Step3: Drag the measure into the table.

v-xulin-mstf_1-1608862380725.png

 

Here is the demo, please try it: Max of a slider as a column in my data.pbix

 

Best Regards,

Link Chen

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Hi, 

Thanks for the solution. 

This is almost what i needed. Now i just want to convert this visualization table into a data table which will be a dynamic table. Is there a way?

 

 

Anonymous
Not applicable

Hi, 

 

My expected table is same as the visualixation created by you. But now i just want to convert this table into a new dataset (so i can use this table to create new measures) and this new table should be dynamic based on the slicer selection 

Basically, what you have done below in a visualization table i want it as a dataset table 

 

Hi,@Anonymous 

I see, but it is not supported now.

 

Best Regards,

Link Chen

Hi,@Anonymous 

What does "a dynamic table" mean?

Sample data and expected output would help tremendously.
Best Regards,
Link Chen
amitchandak
Super User
Super User

@Anonymous , This will give max value in a column. But will not change base on slicer

 

new column = Max(table[Fac1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

My requirement is that it should change bases slicer

@Anonymous , Not possible. You can use that meausre by forcing some row context.

Assume you have unique ID column

Measure =maxx(allselected(Table), table[Fac1])

 

like

Measure 1 = Sumx(Values(Table[ID]), [Measure] * Max(Table[Value1]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Not sure about row context? Does it helps to print a measure as a column?

is there no way we can print a measure into a column? or if we can create another table using that measure and join it back to original table ?

amitchandak
Super User
Super User

@Anonymous , You can not pass slicer value to a column. You have to use a measure

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks amit. Yes, agree. But my question is, can we print this measure value in all rows as a new column?

 

like if the measure output is "3" so now i want to have a new column in my data with all rows equal to "3"

amitchandak
Super User
Super User

@Anonymous , Try a measure like

maxx(allselected(Table), table[Fac1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

This works for a measure, but not when creating a new column. Is there a way that I can paste the measure value as a new column in front of all the rows of my data? As I have done in my initial question

Anonymous
Not applicable

This works for a measure but not when creating a new column. Is there any way i can paste the measure value as a new column in front of all rows in my data? Like i have done in my initial question

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors