Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello Team,
I need to convert the qlik Expression to dax.
2 table in power BI
Table Fact
Table combination
ColorNumber field from Fact table
RegrindColorNumber field from combination table
_RegrindStartingInventory field from combination table
below is the Qlik Expression
Sum(distinct if(left(ColorNumber,1)=left(RegrindColorNumber,1),_RegrindStartingInventory,0))
I have tried converting into DAX but result is not matching.
Solved! Go to Solution.
Hi @Anonymous ,
Please try this:
SUMX(
FILTER(
'combination table',
LEFT( [RegrindColorNumber], 1 ) = LEFT( 'Fact table'[ColorNumber], 1 )
),
_RegrindStartingInventory
)
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try this:
SUMX(
FILTER(
'combination table',
LEFT( [RegrindColorNumber], 1 ) = LEFT( 'Fact table'[ColorNumber], 1 )
),
_RegrindStartingInventory
)
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
21 | |
20 | |
12 | |
10 | |
8 |
User | Count |
---|---|
30 | |
27 | |
14 | |
13 | |
11 |