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
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
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.