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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
strikw
Helper I
Helper I

fixed values in the graph

Hello

 

I have a document that I need to see the daily fixed values, but when I put in the graph the power bi always sums everything up, I want a function for it to show me the same fixed values in the table. My table has the name of the stock, stock price and date, each day has a different price.

 

And I also need a function to know the share price on the first day and the last day of any year.

 

If anyone can help me I'll be grateful, sorry for the simple questions, I'm a newbie in power bi.


Thank you.

1 ACCEPTED SOLUTION
vishnurk
Frequent Visitor

To remove summation for any graphs,in the value feild,click the dropdown and choose the value option to anything else other than sum or summarize.

 

For First day and last day price of a year.Considering you have two filters one for year and other one for stock item.

 

You can create 2 measures:

 

1.First_day_price=calculate(sum(stockprice column),filter(tablename,stockdate=min(stockdatecolumn)))

 

2.Last_day_price=calculate(sum(stockprice column),filter(tablename,stockdate=max(stockdatecolumn)))

You can create 2 score cards for the above 2 measures

So when you select the respective year and stock items in your filter the score cards will show the stock proce for those filter

View solution in original post

2 REPLIES 2
vishnurk
Frequent Visitor

To remove summation for any graphs,in the value feild,click the dropdown and choose the value option to anything else other than sum or summarize.

 

For First day and last day price of a year.Considering you have two filters one for year and other one for stock item.

 

You can create 2 measures:

 

1.First_day_price=calculate(sum(stockprice column),filter(tablename,stockdate=min(stockdatecolumn)))

 

2.Last_day_price=calculate(sum(stockprice column),filter(tablename,stockdate=max(stockdatecolumn)))

You can create 2 score cards for the above 2 measures

So when you select the respective year and stock items in your filter the score cards will show the stock proce for those filter

Thank you

Problem solved.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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