New to DAX

mib1019

Board Regular
Joined
Nov 9, 2017
Messages
66
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am new to Power Query /PowerBI and have made a start with an online course.

Have chosen a project involving weather history to continue my leanrning. I have only three tables. One is weather history data, acquired from VisualCrossings, which I will append to at the end of each month. It currently holds data for all dates from 2000-2021 for a few locations.

Two other tables are 'Date Lookup' and 'Season Lookup', as shown below:

1645809299787.png


1645809334680.png


I want to get the Season for the given date into the Date Lookup table from the Season Lookup table. Is there a DAX formula that would work for this?

Thanks in advance for any help you can give me.

MIB1019
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Unpivot your seasons table, keeping the year column, unpivot the rest.
this should give you 3 columns, year, attribute (season name start/end), and value (the date).
remove any rows with “end”, keeping the start rows
go to the calendar table and merge the seasons table on date.
extract the attribute column into the calendar
fill down this column
remove the word start from the end

learn how to be awesome with Power BI at Skillwave Training
 
Upvote 0
Solution
Well, that was awesome! Love this stuff. Thanks for the help, it worked perfectly!

MIB
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top