We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I have a set of data which "Country Start" and "Country End" dates per country
This data is connected to a Global daat set "with "Global Start" and "Global End"
My country data is not always popualted with start end dates, and I would therefore like to use the Global Start/end for those?
How can I do this directly into powerquery?
Im thinking in the lines of this
NEW COLUMN= IF(Country Start)="",RELATED(Global START),(Country Start))
I hope this makes sense
KRistoffer
Solved! Go to Solution.
Hi @KristofferAJ ,
I think the simplest way in PQ would be to merge your Global start/end dates onto your Country table, then add a couple of new start/end date columns something like this:
countryStartDateFilled =
if [countryStartDate] = null then [globalStartDate] else [countryStartDate]
countryEndDateFilled =
if [countryEndDate] = null then [globalEndDate] else [countryEndDate]
Pete
Proud to be a Datanaut!
Hi @KristofferAJ ,
I think the simplest way in PQ would be to merge your Global start/end dates onto your Country table, then add a couple of new start/end date columns something like this:
countryStartDateFilled =
if [countryStartDate] = null then [globalStartDate] else [countryStartDate]
countryEndDateFilled =
if [countryEndDate] = null then [globalEndDate] else [countryEndDate]
Pete
Proud to be a Datanaut!
Thanks, thats actually also what I realized
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |