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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Tableau Fixed LOD (applied on a column) conversion to Power BI

Hi All,

 

We have a table like this below 

 

BrandProductCorporation
AXE
AAF
AZG
AUH
AVI
BRE
BBF
BXG
BYH
BZI

I wanted to convert the below tableau formula to Power BI

 

{ FIXED [Market]:MAX([Market]=[Product] AND [Corporation]='F') - this formula allows to check the other competitor products and corporation for that Market which satisfies the condition because of LOD

 

I have tried to apply the same by creating a flag in Power BI

condition check = IF( 'Table'[Market]='Table'[Product]&&'Table'[Corporation]='F' ,1,0)

but this filters the specific row , so I am unable to check other products within the Brand.

 

Please help how to achieve this 

 

Thanks,

Ananth 

4 REPLIES 4
Anonymous
Not applicable

Hi Team ,

 

Sorry for the delay in response. 

Actually I have made some naming mistake while mentioning the formula .

Thats not "Market" , it is "Brand"

{ FIXED [Brand]:MAX([Brand]=[Product] AND [Corporation]='F') . - this formula gives the brand names which satisfy the condition brand = product and corporation = F

 

the desired output is

BrandProductCorporationdesired outputSales
AXEA500
AAFA400
AZGA300
AUHA200
AVIA100
BREB500
BBFB400
BXGB300
BYHB200
BZIB100
CXPBlank500
CYQBlank400
CZRBlank300
CFSBlank200
CKTBlank100
CRUBlank9

 

Brand A and B satisfy the condition and C did not (so blank values)


once I got this , I will take the "Desired output" field , and rank accordingly to the "sales" column ,

ProductCorporationdesired outputSalesRank
XEA5001
AFA4002
ZGA3003
UHA2004
VIA1005
REB5001
BFB4002
XGB3003
YHB2004
ZIB1005
XPBlank500Blank
YQBlank400Blank
ZRBlank300Blank
FSBlank200Blank
KTBlank100Blank
RUBlank9Blank

 

I have tried the below dax 

 

Calculate (

MAXX('Table',IF( CONTAINSSTRING('Table'[Brand],'Table'[Product])&&'Table'[Corporation]="F" ,1,0) ),
ALLEXCEPT('Table','Table'[Brand])

 

will apply filter 1 for the above dax calculated column

 

apply rank filter =1 , so we will get competitor product and corporation information

ProductCorporationdesired outputSalesRank
XEA5001
REB5001

 

rank formula = 

var result = 

rankx(

Filter(

all('Table'[Product],'Table'[Corporation]),
'Table'[Corporation]<>"F"),//in competitor table does not have our own corporation product so that excluded "F"

[Sales],,,Dense)

 

return result

 

Applied the filter on this "rank formula" =1

 

It is loading long time to run and some times failing with "Not enough memory". (Please note : I have single Fact table and the PBI size is 1.2 GB having Premium workspace , in Power BI Service as well same problem )

Please check and let me know, is there any way to achieve this.

 

Thanks,

Ananth

Anonymous
Not applicable

Hi @Anonymous ,

 

Any updates?

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @Anonymous ,

 

What does this mean?——but this filters the specific row , so I am unable to check other products within the Brand.

And you used 'Table'[Market] ,which is not matched with the Table you provided, is it Brand column?

 

As @amitchandak mentioned, please share more detail information to help us clarify your scenario.

Eyelyn9_0-1645514774938.png

 

Refer to:

How to Get Your Question Answered Quickly - Microsoft Power BI Community

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

amitchandak
Super User
Super User

@Anonymous , I do not see Market and Corporation =B in your data.


Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.