What are filter functions in power bi DAX How does LOOKUPVALUE work

This recipe explains what are filter functions in power bi DAX This recipe explains how does LOOKUPVALUE work

Recipe Objective - What are filter functions in Power BI DAX? How does LOOKUPVALUE work?

The filter and value functions in DAX are some of the most complex and powerful and differ greatly from Excel functions. The lookup functions work by using tables and relationships, like a database. The filtering functions let you manipulate data context to create dynamic calculations.

LOOKUPVALUE - Returns the value for the row that meets all criteria specified by search conditions. The function can apply one or more search conditions.

Syntax of LOOKUPVALUE -

LOOKUPVALUE( result_columnName, search_columnName, search_value, [search2_columnName, search2_value]… , [alternateResult] )

Parameters -

result_columnName - The name of an existing column that contains the value you want to return. It cannot be an expression.

search_columnName - The name of an existing column. It can be in the same table as result_columnName or in a related table. It cannot be an expression.

search_value - The value to search for in search_columnName.

Returns the value for the row that meets all criteria specified by one or more search conditions.

In this way, we can use the LOOKUPVALUE function in Power BI DAX.

What Users are saying..

profile image

Abhinav Agarwal

Graduate Student at Northwestern University
linkedin profile url

I come from Northwestern University, which is ranked 9th in the US. Although the high-quality academics at school taught me all the basics I needed, obtaining practical experience was a challenge.... Read More

Relevant Projects

NLP Project for Multi Class Text Classification using BERT Model
In this NLP Project, you will learn how to build a multi-class text classification model using using the pre-trained BERT model.

Build Piecewise and Spline Regression Models in Python
In this Regression Project, you will learn how to build a piecewise and spline regression model from scratch in Python to predict the points scored by a sports team.

Build a Hybrid Recommender System in Python using LightFM
In this Recommender System project, you will build a hybrid recommender system in Python using LightFM .

Hands-On Approach to Master PyTorch Tensors with Examples
In this deep learning project, you will learn how to perform various operations on the building block of PyTorch : Tensors.

Build a Review Classification Model using Gated Recurrent Unit
In this Machine Learning project, you will build a classification model in python to classify the reviews of an app on a scale of 1 to 5 using Gated Recurrent Unit.

Multi-Class Text Classification with Deep Learning using BERT
In this deep learning project, you will implement one of the most popular state of the art Transformer models, BERT for Multi-Class Text Classification

MLOps Project to Deploy Resume Parser Model on Paperspace
In this MLOps project, you will learn how to deploy a Resume Parser Streamlit Application on Paperspace Private Cloud.

Classification Projects on Machine Learning for Beginners - 2
Learn to implement various ensemble techniques to predict license status for a given business.

Learn to Build a Neural network from Scratch using NumPy
In this deep learning project, you will learn to build a neural network from scratch using NumPy

Build a Text Generator Model using Amazon SageMaker
In this Deep Learning Project, you will train a Text Generator Model on Amazon Reviews Dataset using LSTM Algorithm in PyTorch and deploy it on Amazon SageMaker.