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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.