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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jacobq
Frequent Visitor

Level of Detail Calcs to DAX

Hi,

 

I have a report in Tableau and want to recreate it in PowerBI. However, I'm facing a couple of issues that need your help!

 

1. Maximum Value

The Maximum Key I get in tableau is different from what I get in Power BI. I checked the raw data, looks like the Tableau is getting the right number. Do you know why? How can I get the correct Max Key number in PowerBI? 

Tableau:

MAX([Ace Sla Track Key])

jacobq_0-1623333605005.png

 

PowerBI:

Max Key = MAX(TABLE2[ACE_SLA_TRACK_KEY])

jacobq_1-1623333744419.png

 

2. I need to create a Level of Detail calculation in PowerBI, but can't get it to work. Anyone can help?

 

I want to get the Count of each Appl Id that PXSUBSCRIPT contains "CaseQueued*" and within the same Createtime, only count the MAX ACE_SLA_TRACK_KEY

 

sample below:

jacobq_0-1623335213428.png

 

Table 1 is "1 to many relationship" with Table 2 (by ACE_CR_APPL_KEY)

[Appl Id] is from Table1, all other columns are from Table2

 

Tableau Calculation:

Inflow=COUNT({ FIXED [Appl Id],[Pxsubscript],[Createdatetime]: MAX(IF CONTAINS([Pxsubscript],"CaseQueued") then [Ace Sla Track Key] end) } )

 

PowerBI Calculation THAT DOESN"T WORK

Inflow = CALCULATE(MAX(TABLE2[ACE_SLA_TRACK_KEY]), CONTAINS(TABLE2,[PXSUBSCRIPT],"CaseQueued"),
ALLEXCEPT(TABLE2,TABLE2[PXSUBSCRIPT],TABLE2[CREATEDATETIME]),
ALLEXCEPT(TABLE1,TABLE1[APPL_ID]) )

 

Any help is appreciated!

 

Thanks,

Jacob

 

 

 

 

 

1 REPLY 1
Anonymous
Not applicable

It might very well be that you don't fully understand what the ALLEXCEPT function does. Here's something to help your understanding: Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI

 

Also, the amount of info you've given is not enough to troubleshoot. One needs to see the data and the model to even start thinking about troubleshooting.

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.