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.
Hi All,
I manage to calculate below two measures. and the 2nd step is built on the measure from 1st Step.
1st Step:
DP = CALCULATE( DISTINCTCOUNT( FACT_Sales[Item Name]), ALLEXCEPT(FACT_Sales, FACT_Sales[Customer Name]), FILTER( FACT_Sales, FACT_Sales[Item Order Amt CNY] >0))
2nd Sep:
DPs Total = SUMX( VALUES(FACT_Sales[Customer Name]), 'Key Measures-DPs'[DP])
However, the report became extremely slow to refresh based on my slicers like Date or Channels after the second DAX-DPs Total.
Would you please check if I can optimise this DAX formula to improve the performance?
Thanks You all
Hi @Peter_Sun
With your second measure what are you trying to get the result of for your measure?
Is it a total of all Customers?
Hi,
The measure I am trying to get is tell me how many listings I have in my business scenarios.
One listing means a product sold to one customer.
For example,
If one product sold to two customers, we have two listings or
If two products sold to one customer, we have two listings as well.
Or do you have any other better measures to calculate this out?
really thanks for your help.
You may also try calculated table.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
95 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |