#Tableau

  Рет қаралды 12,593

Andy Kriebel

Andy Kriebel

Күн бұрын

In this video, I got through several examples of when to use an IIF, IF THEN, or CASE statement in Tableau. I also cover their best use cases, when you have to use one vs. another, and general rules of thumb.
While this is demonstrated in Tableau, it's application to nearly all tools that use logical statements.

Пікірлер: 33
@AndyCotgreave
@AndyCotgreave 2 жыл бұрын
These videos are such an amazing step up in production quality. Love it! Keep 'em coming, Andy
@vizwiz
@vizwiz 2 жыл бұрын
Cheers Andy! I wish I had hired an editor ages ago.
@cococnk388
@cococnk388 Жыл бұрын
Thanks Andy. You and Donabel Santos are the best on Tableau stuff
@vizwiz
@vizwiz Жыл бұрын
Glad you like them!
@andreriley739
@andreriley739 2 жыл бұрын
I'm a key believer in returning to the fundamentals, which sometimes allow us to question our routines and biases. I've personally never liked using CASE statements (for not being as explicit as IF) in tableau but never really understood how it differed from If statements so this was a big help...in confirming why I don't like them lol.
@vizwiz
@vizwiz 2 жыл бұрын
I agree that case are less familiar. What I write for myself will sometimes be different than my audience. If I suspect they might not understand CASE, I'll us an IF.
@analystmommy
@analystmommy Жыл бұрын
thank you so much Andy .I just started watching your videos .I love how you shared multiple information in a single video . Many thanks for the video
@vizwiz
@vizwiz Жыл бұрын
You are very welcome
@danmcintyre9702
@danmcintyre9702 2 жыл бұрын
Thank you for the video. I learned a couple of new things! One thing that I've struggled with as SQL user in Tableau is the structure of the case statements. I use "IN" often to match against multiple values (case when [field] in ('value1', 'value2', etc.)...) and I haven't found a way to do this in Tableau without creating a when/then for each value. Perhaps there's a better way?
@vizwiz
@vizwiz 2 жыл бұрын
IN is a function indeed. I would use it in an IF statement instead.
@andriykabanets4493
@andriykabanets4493 2 жыл бұрын
Dan: --- CASE [Region] WHEN IN ('East','West') THEN [Sales] END --- or you can do it in a simple one row: IIF(Region IN ('East','West'),[Sales],0)
@pallawichaudhari
@pallawichaudhari 2 жыл бұрын
Very helpful. Quick tips for fast life 😄
@vizwiz
@vizwiz 2 жыл бұрын
Glad you think so!
@mikebrown2989
@mikebrown2989 2 жыл бұрын
Can you make a video about the efficiency of each function as well? Because I'm comfortable using any of these functions, but maybe I want to use a CASE statement rather than an IF statement because Tableau processes it faster, or something like that.
@vizwiz
@vizwiz 2 жыл бұрын
That's completely dependent on your data source. One thing to keep in mind is that IF statements always check a true/false condition whereas a CASE compares to a string. I would expect an IF to be faster.
@romanvasiura6705
@romanvasiura6705 Жыл бұрын
Thank you for this great video lesson)
@mehabubshaikh9178
@mehabubshaikh9178 Жыл бұрын
hi Andy kriebel very good explain basics of calculations
@vizwiz
@vizwiz Жыл бұрын
Glad it was helpful!
@hnjonesf
@hnjonesf 2 жыл бұрын
Is there a performance difference between if and case?
@vizwiz
@vizwiz 2 жыл бұрын
Negligible performance benefits for a case statement.
@matheusluiz6
@matheusluiz6 Жыл бұрын
Great vídeo!!!
@adarshgochhayat2374
@adarshgochhayat2374 2 жыл бұрын
Hi Andy, love your videos. keep up the great work. A request here, can you please make a video on most common functions and scenarios you must have come across till now. I mean the most used date functions, logical functions etc. If not video may be blog or something. In case you have already done something like that kindly guide me to the link or resource. Thanks and again appreciate what you are doing for community.
@vizwiz
@vizwiz 2 жыл бұрын
That's really an impossible question to answer. I posted a video last week on date functions.
@jennielear
@jennielear 2 жыл бұрын
Why did tableau have to restructure Case statements. It’s one of the many reasons I like it much less than any other vis tool
@vizwiz
@vizwiz 2 жыл бұрын
I don't follow. How was it restructured? Do you mean the syntax is different than other tools?
@jennielear
@jennielear 2 жыл бұрын
@@vizwiz yes. We all familiar with case when then… case [field] when = x Just stick to the standards tabby please
@PatrickBateman12420
@PatrickBateman12420 2 жыл бұрын
Love those "fundamental" videos. I'm emberassed to say, but I failed to predict the Null output for IF THEN w/o ELSE.
@jacekjmm
@jacekjmm 2 жыл бұрын
In some cases I do something like that: CASE TRUE WHEN [Sales]>=0 THEN 'High sales' WHEN [Sales]
@vizwiz
@vizwiz 2 жыл бұрын
Someone else pointed that out to me today too. I didn't know they could be written that way. I find the logic tougher to follow than an IF would be though.
@Ibad_gamer937
@Ibad_gamer937 2 жыл бұрын
Interesting.
@vizwiz
@vizwiz 2 жыл бұрын
Glad you think so!
@raygivler
@raygivler 2 жыл бұрын
IIF() should have been called ITE(). There, I said it.
@vizwiz
@vizwiz 2 жыл бұрын
🤦🏻‍♂️
#Tableau - Date Functions
9:33
Andy Kriebel
Рет қаралды 17 М.
Fixing Tableau Calculation Aggregation Errors
9:36
OneNumber - Tableau Experts
Рет қаралды 6 М.
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
#Tableau - Attribute Aggregation
6:47
Andy Kriebel
Рет қаралды 15 М.
Understanding Tableau Context Filters
16:51
Anthony Smoak
Рет қаралды 11 М.
RLS- Row Level Security - User Functions  In TABLEAU
31:06
Telugu Tech
Рет қаралды 27 М.
Стыдные вопросы про Китай / вДудь
3:07:50
вДудь
Рет қаралды 2 МЛН
Conditional Logic: IF, ELSE, ELSEIF, IIF, CASEWHEN | #Tableau Course #92
29:29
Tableau - Logical Functions
4:49
TutorialsPoint
Рет қаралды 76 М.
Exclude Level of Detail Calculation: Tableau Functions
24:56
Tableau Tim
Рет қаралды 9 М.
Top 10 Tableau String (Text) Functions in 10-ish Minutes
15:37
OneNumber - Tableau Experts
Рет қаралды 2,3 М.
#Tableau - Table Calcs vs LODs
5:54
Andy Kriebel
Рет қаралды 14 М.