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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
rashel2002
Helper II
Helper II

Help with Line and stack column chart

Hi all!

 

i created this chart (more detailed than it's shown here)-

14.PNG

 

and i want that after the first time we've got the max value, we won't have it again. what i mean is that i want it to look something like that-

15.PNG 

 

is it possible to do so?

 

Thanks.

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

You could create a custom column that you would then use as a filter or as a filter for a measure, something like:

 

Column = 
VAR __Max = MAXX(ALL('Table'),[No. of hours])
VAR __MaxWW = LOOKUPVALUE(ALL('Table'[WW]),'Table'[No. of hours],__Max)
RETURN
IF([WW]<__MaxWW,1,0)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi Greg,

 

thank you for your answer but It doesn't work 😕

the "No. of hours" column is unnecessary, the chart i created is based on the "**bleep** hours" column which is created by measure. maybe this is the reason the code you wrote isn't working to me 😕

 

what i want is to create new column/measure, based on that measure (on "**bleep** hours" column), and changing evey row that is the max value to zero, except to the first time.

 

is it possile to do it?

 

thanks again! 

Hilarious "***bleep*** hours!!

 

One thing I do not understand, why is your cumulative total 7 when you have 2 hours one week and 7 another week?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

hahaha oops! it should be 9 instead of 7! sorry about it

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.