• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Match each version to "All" in power query|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Match each version to "All" in power query|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryMatch each version to "All" in powe…
sp_PrintTopic sp_TopicIcon
Match each version to "All" in power query
Avatar
jaryszek
Member
Members
Level 0
Forum Posts: 183
Member Since:
February 1, 2019
sp_UserOfflineSmall Offline
1
June 26, 2020 - 4:53 pm
sp_Permalink sp_Print sp_EditHistory

Hi Guys,

i have very difficult problem to solve in PQ. 

 

Screenshot_53.pngImage Enlarger

 

in table AppVersions i have different versions for different Applications including "All" which means that application will work with all versions of system.

In second table i have:

Screenshot_54.pngImage Enlarger

 

AppVersion (key to left join) and System.

As a result i want to get:

Screenshot_55-1.pngImage Enlarger

So version 4.1 has joined Linux , other versions have joined "All" and "All" has joined "All" because of exact match.

 

So if we have Appversion and system for it specified, it will be joined with specified System. In example: 4.1 is joined to 4.1
If we do not have system for AppVersion in Table To Left Join worksheet, it will be mapped to "All" AppVersion. In example: 3.1, 222, 2.5 will be mapped to "All"
If we have "All" as AppVersion it will be mapped to "All" AppVersion in Table To Left Join worksheet. In example: "All" AppVersion in Result table got "Windows" system because Windows is "All" in Table to Left Join worksheet.

Please help, 

Jacek

sp_PlupAttachments Attachments
  • sp_PlupImage Screenshot_53.png (419 KB)
  • sp_PlupImage Screenshot_54.png (355 KB)
  • sp_PlupImage Screenshot_55-1.png (65 KB)
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
June 26, 2020 - 5:41 pm
sp_Permalink sp_Print

Hi Jacek,

If that is all the data you will be working with you can just use an IF.  There are only 2 possible outcomes "Linux" or "Windows" and the only test is if AppVersion is 4.1.  If it is then "Linux" else "Windows".

I've also done it in Power Query if you want to go that route.

Regards

Phil

Avatar
jaryszek
Member
Members
Level 0
Forum Posts: 183
Member Since:
February 1, 2019
sp_UserOfflineSmall Offline
3
June 27, 2020 - 12:26 am
sp_Permalink sp_Print sp_EditHistory

Hi Philip,

thank you!

this is not solving the issue because you can have not onlu Linux and Windows, they can be change dynamically in table (added more). 
Can you please advice how to solve?

Jacek

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
June 27, 2020 - 4:40 pm
sp_Permalink sp_Print sp_EditHistory

Hi Jacek,

If there's more data to work with then you need to supply it please.

And provide detailed examples of the expected results for this data.

Regards

Phil

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Velouria, David Eva
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Hayden Hao
Angela chen
Sean Moore
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Forum Stats:
Groups: 3
Forums: 24
Topics: 6211
Posts: 27238

 

Member Stats:
Guest Posters: 49
Members: 31891
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.