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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Need to understand to convert Qlik View to PowerBI

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])))

3 REPLIES 3
Anonymous
Not applicable

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

v-easonf-msft
Community Support
Community Support

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

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.