Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
drrai66
Resolver I
Resolver I

Formula Conversion

HI People,

How can I convert This Tableau Formula to Power BI?

 

{FIXED [ID:MAX(IF [Item]="A THEN [Item]END)}

 

This would find if Item="A" for ID 1, then It would write A across all Rows for 1.

 

IDItemResult
1AA
1BA
1CA

 

Thanks

Deepak

2 ACCEPTED SOLUTIONS

Hi Daniel,

Your logic will definitely work in the case "A" is minimum, which is actually Minimum in the example  but actually my Data set is something like this

 

Suppose  the dataset Looks like This:

 

IDItem
1Soap
1Pen
1Pencil
2Soap
2Rubber
2Paper

 

 


In Tableau, I would Simply write this  

 

{FIXED ID:MAX(IF Item="Soap" Then Item end)}

 

to get This:

 

IDItemResult
1SoapSoap
1PenSoap
1PencilSoap
2SoapSoap
2RubberSoap
2PaperSoap

 

I am looking for Similar Logic in Power BI.

 

Thanks a lot

Deepak

 

 

View solution in original post

Hi @drrai66,

Based on my test, you could try this formula:

Measure = CALCULATE(MAX(Table1[Item]),FILTER(ALL('Table1'),'Table1'[Item]="M"))

Result:

1.PNG

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @drrai66,

Based on my test, you could refer to below formula:

Measure = CALCULATE(MIN('Table1'[Item]),FILTER(ALLSELECTED('Table1'),'Table1'[ID]=1))

Result:

1.PNG

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Daniel,

Your logic will definitely work in the case "A" is minimum, which is actually Minimum in the example  but actually my Data set is something like this

 

Suppose  the dataset Looks like This:

 

IDItem
1Soap
1Pen
1Pencil
2Soap
2Rubber
2Paper

 

 


In Tableau, I would Simply write this  

 

{FIXED ID:MAX(IF Item="Soap" Then Item end)}

 

to get This:

 

IDItemResult
1SoapSoap
1PenSoap
1PencilSoap
2SoapSoap
2RubberSoap
2PaperSoap

 

I am looking for Similar Logic in Power BI.

 

Thanks a lot

Deepak

 

 

Hi @drrai66,

Based on my test, you could try this formula:

Measure = CALCULATE(MAX(Table1[Item]),FILTER(ALL('Table1'),'Table1'[Item]="M"))

Result:

1.PNG

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes That's It!!! Thanks a Lot

deldersveld
Resident Rockstar
Resident Rockstar

This would be something along the lines of a measure with the formula:

=CALCULATE(MAX(Table[Item]), ALLEXCEPT(Table, Table[ID]))

 

FIXED LODs roughly translate to ALLEXCEPT:

https://dataveld.com/2018/02/17/tableau-to-power-bi-fixed-lod-expressions/

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.