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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
datanalyst1
New Member

Need to convert qlik expression to DAX

Hello everyone,

I am trying to change a formula from qlik to dax but cannot find a solution.
Qlik expression is this one:

measure = count({<[Order Status] = {'Invoiced','Delivered','Returned'}>} DISTINCT Total [N° Order])

I would need the measure to show the same total in each row of the column.
Can someone please help me?

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @datanalyst1

 

You may create a new column with below DAX. Is this what you want? 

Count = CALCULATE(DISTINCTCOUNT('Table'[N° Order]), FILTER('Table','Table'[Order Status] IN {"Invoiced", "Delivered", "Returned"}))

vjingzhang_0-1675240754696.png

 

If I don't understand it correctly, can you please provide some sample data and expected output in table format? I don't have experience in Qlik so the sample data and expected output can help me understand your requirement better. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
sagrawa
Frequent Visitor

sum(aggr(
(sum(CustTable.AccruedDebit) - sum(CustTable.AccruedCredit)) + sum(CustTable.AccrualAmount), CustTable.%Account_Key))

v-jingzhang
Community Support
Community Support

Hi @datanalyst1

 

You may create a new column with below DAX. Is this what you want? 

Count = CALCULATE(DISTINCTCOUNT('Table'[N° Order]), FILTER('Table','Table'[Order Status] IN {"Invoiced", "Delivered", "Returned"}))

vjingzhang_0-1675240754696.png

 

If I don't understand it correctly, can you please provide some sample data and expected output in table format? I don't have experience in Qlik so the sample data and expected output can help me understand your requirement better. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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