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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.