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
Anonymous
Not applicable

Filtering DAX variable

Hi! I have a DAX statement like this :

 

"VAR _road = RST[road]
VAR _section = RST[section]
VAR _dist = RST[distance]

VAR _COMPARISON = CALCULATE(SUM(RST[edgedropoffdepth]); FILTER(RST; RST[distance] = _dist && RST[road] = _road && RST[section] = _section && RST[runname] = 41)) 

 

RETURN
RST[edgedropoffdepth] - _COMPARISON"

 

So basically I have the same road/section/distance and I'd like to compare how the value has changes. Is it somehow possible to but a value for this "VAR _FIRST", if there is no value with desired distances, road, section and runname. So is there a possibility to add somekind of IF statement (or something else).

1 REPLY 1
BrandyG_iTalent
Administrator
Administrator

Hello @Anonymous 

 

Take a look at this article. It contains some great tips for getting your question answered quickly.

 

 https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Thanks for being part of the community!

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.

Top Solution Authors