Тёмный

How to Effectively Compare Text in Power BI? Measures? Calculated Columns? Which Dax? 

Подписаться
Просмотров 3 тыс.
% 53

Have you ever felt... why are the things which are so easy to do in Excel, suddenly become so tricky in Power BI? such as XLOOKUP, VLOOKUP and IF Statements.... ?
What to use in Power BI? Calculated Columns? Measures? Which dax? Why do I have duplicated value? Why is my total not working? Why are things so difficult?
In Power BI Tutorial for beginners video, I will show you how to do just that in Power BI.
Have you ever come across a situation when you need to merge information from different tables, so that you can then compare the value of two text columns? To see if they are the same or different? Things which are so simple to do in Excel... But how to do it in Power BI???
The first thing that we need to do … is ensure that the relationship has been properly defined in Power BI
Then you need to decide if you want to create measures or calculated columns in Power BI.
If you come from excel background, then the temptation will be to create calculated columns, as this is what we often do in Excel whenever we need to compare fields across multiple tables.
However, in Power BI, best practice is to keep your model slim and long.
We should keep the no of columns to a minimal and not add new columns unless absolutely necessary. Therefore comparisons, calculations, etc... should be done using measures.
In this video, you will learn 3 important concepts
1. In Power BI, there is no need to write a special DAX function to replicate VLOOKUP or XLOOKUP. All you need is to define the proper relationship in your data model.
2. In Power BI, we can compare text values in across different field and tables by writing IF Statements as interim measures and subsequently wrapping it with SUMX.
3. In Power BI, where possible, try to avoid calculated columns and use measures instead, unless if you need to display the values of your calculated columns in a slicer, in your Power BI report.
Hope you find this video useful !! See you next time.
Cheers,
Isabella Susilowati @LighthouseAnalytix #powerbi, #powerbiforbeginners , #powerbitutorial, #powerbiforbeginners
Timelines:
00:00 Introduction
00:29 Let's get started
01:59 How to compare two text fields in Power BI
09:57 Epilogue
Music by: bensound.com
License code: WSR43MPCZBGRFHWZ
LA116

Опубликовано:

 

16 авг 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@LucasGrassiRamoska
@LucasGrassiRamoska 6 дней назад
thank you very much. You saved me
@gennarocimmino
@gennarocimmino 11 месяцев назад
interesting tutorial thank you for sharing it
@LighthouseAnalytix
@LighthouseAnalytix 11 месяцев назад
You are welcome! Cheers 👍
@kiran521
@kiran521 11 месяцев назад
Please let me know why u used min dax function while comparing names
@LighthouseAnalytix
@LighthouseAnalytix 11 месяцев назад
In simple term, certain DAX won't work, unless you specify an expression, which can either be MIN or MAX or COUNT or SUM... of a given field. However, we can't sum TEXT... therefore, we need to choose MIN or MAX. We are asking Power BI to get the values of data from a given field, for a given FILTER context and for a given ROW context. If there are more than 1 values available for Power BI to return, let's say Apple & Orange, Power BI needs to know.. which value to retrieve and use. If we choose MIN, Power BI will retrieve the first value in alphabetical order, e.g. Apple If we choose MAX, Power BI will retrieve the last value in alphabetical order e.g. Orange Hope this is making sense...
@kiran521
@kiran521 11 месяцев назад
@@LighthouseAnalytix understood, thank you very much madam 😊
@LighthouseAnalytix
@LighthouseAnalytix 11 месяцев назад
you are welcome 🙂
@erinfield1943
@erinfield1943 Месяц назад
starts at 3:58
@LighthouseAnalytix
@LighthouseAnalytix Месяц назад
:)
@aunad___
@aunad___ 3 месяца назад
Hi Isabella! I sent you a message on LinkedIn :)
@LighthouseAnalytix
@LighthouseAnalytix 3 месяца назад
Got it! Thanks for taking the time to drop me a note. All the best in your PBI learning journey.