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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ebrownretail
Resolver I
Resolver I

Input Snow Range

Hi!

I am trying to find what my snow range is based on the weekly history snow totals. Currently, this is not filling in. Can you please help figure out what to do or whats wrong? I need to take this info for my next step in the analytics process.

 

Here is my measure:

Find Range history =
CALCULATE(SELECTEDVALUE('Weather Range'[Snow Range]),FILTER('Weather Range', 'Weather Range'[Snow] = [Weekly totals]))
 

Here is what my table says to find what the snow range is:

SnowSnow Range
00
11-3
21-3
31-3
44-8
54-8
64-8
74-8
84-8

 

I have the weekly snow totals below:

Store NumberWeek NumberSnow TotalSnow Range
12023491 
12023506 
12024034 
1 ACCEPTED SOLUTION
ebrownretail
Resolver I
Resolver I

So i just figured it out by thinkging of a Vlookup in excel and was able to get it to work!

 

Find Range history =
LOOKUPVALUE('Weather Range'[Snow Range], 'Weather Range'[Snow], [Weekly totals])

View solution in original post

5 REPLIES 5
ebrownretail
Resolver I
Resolver I

So i just figured it out by thinkging of a Vlookup in excel and was able to get it to work!

 

Find Range history =
LOOKUPVALUE('Weather Range'[Snow Range], 'Weather Range'[Snow], [Weekly totals])
lbendlin
Super User
Super User

Join the tables in your data model via the Snow/Snow Total columns.  Then you get the Range for free.

i need it to be the specified range as sales work differently based on different snow amounts.

Anonymous
Not applicable

Hi All
Firstly  lbendlin thank you for your solution!
And @ebrownretail ,you can try the treatas function, it should be able to accomplish your needs, you can filter the snowrange according to snowtotal, I hope my solution is helpful to you, I will be honored if I can solve your problem!

Measure = CALCULATE(
MAX('Table (2)'[Snow Range]),TREATAS(VALUES('Table'[Snow Total]),'Table (2)'[Snow]))

vxingshenmsft_0-1724723023205.png

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

hi!

I just tried this but am getting this error.

 

Find Range history =
CALCULATE(MAX('Weather Range'[Snow Range]), TREATAS(VALUES('A - Snow Measures', [Weekly totals]), 'Weather Range'[Snow]))

 

Too many arguments were passed to the VALUES function. The maximum argument count for the function is 1.

 

ebrownretail_0-1724762885753.png

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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