The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Team,
I am currently working inQlikvew project .So I need to understand the MDX query and How I can convert MDX query to DAX query.
=if('$(vWHELocation)' = 'TWI-WH',
num(aggr(sum(if([opratwarehousewithexpiry.Bin Code] <> 'SHIPBIN',
[opratwarehousewithexpiry.Remaining Quantity])),Items.No_,[opratwarehousewithexpiry.Expiration Date]))
,
num(aggr(sum([polandwarehousewithexpiry.Remaining Quantity]),Items.No_,[polandwarehousewithexpiry.Expiration Date])))
Hi,
No it is not correct as aggregation is being used with (Items.No_) and [opratwarehousewithexpiry.Expiration Date] in Qlikview but how do we achieve in powerBI ?
Hi, @Anonymous
I'm a little confused.
Can you explain your needs concretely with sample data and expected results?
Best Regards,
Community Support Team _ Eason
Hi, @Anonymous
If I understand task right, you can try formula like:
Measure1 =
VAR a =
CALCULATE (
SUM ( 'opratwarehousewithexpiry'[Remaining Quantity] ),
ALLEXCEPT (
'opratwarehousewithexpiry',
'opratwarehousewithexpiry'[Expiration Date],
'opratwarehousewithexpiry'[Items.No_]
),
'opratwarehousewithexpiry'[Bin Code] <> "SHIPBIN"
)
VAR b =
CALCULATE (
SUM ( 'polandwarehousewithexpiry'[Remaining Quantity] ),
ALLEXCEPT (
'polandwarehousewithexpiry',
'polandwarehousewithexpiry'[Expiration Date],
'polandwarehousewithexpiry'[Items.No_]
)
)
RETURN
IF ( MAX ( 'polandwarehousewithexpiry'[vWHELocation] ) = "TWI-WH", a, b )
Best Regards,
Community Support Team _ Eason
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
83 | |
75 | |
51 | |
42 |
User | Count |
---|---|
140 | |
113 | |
73 | |
64 | |
62 |