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
charlesLeblanc
New Member

How to apply a percentage difference measure only to the row total?

I have a table with a measure that calculates the difference in price between two dates, and I can't figure out how to remove the columns in red.

charlesLeblanc_1-1625003249661.png

 

The measure I'm using:

 

Pct change = 
var _max = maxx(priceTable,priceTable[Date])
var _min = MINX(priceTable,priceTable[Date])

var _latestValue = CALCULATE(SUM(priceTable[Price]),FILTER(ALLEXCEPT ( priceTable, priceTable[symbol]),priceTable[Date]=_max))
var _earliestValue = CALCULATE(SUM(priceTable[Price]),FILTER(ALLEXCEPT ( priceTable, priceTable[symbol]),priceTable[Date]=_min))	

return (DIVIDE ( _latestValue - _earliestValue, _earliestValue, 0 ))

 

 

One temporary solution I have is to hide the columns filled with 0,00%, but every time I choose new dates, these pesky columns reappear. Ideally, the end user should not see those columns.

 

Any help is appreciated, thanks!

1 REPLY 1

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.