The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I want to calculate a distinct count of a column that is basically in text formula over filter where subtotale volumne is = 0.00, is there smartest way to do this? I want a measure of it because I then want to use this in my other calculations so need a measure of it. Please help?
Solved! Go to Solution.
Hi,
According to your description, i create a sample to test:
Then please try this measure:
Measure = SUMX(DISTINCT('Table'[Retailer Name]),IF(CALCULATE(SUM('Table'[Volumes]))>0,0,1))
The result shows the distinct count of Retailer whose sum of Volumes=0:
Here is my test pbix file:
Hope this helps.
Best Regards,
Giotto Zhi
@amitchandak I tried this but I am getting error related to, "dax comparison operations do not support comparing values of type text with values of type integer"
But in my case I have text column where I have my retailer name and I have another column where I have maintained there volumes, now I want to find distinct retailers that have volumes more then zero how can I do this?
Hi,
According to your description, i create a sample to test:
Then please try this measure:
Measure = SUMX(DISTINCT('Table'[Retailer Name]),IF(CALCULATE(SUM('Table'[Volumes]))>0,0,1))
The result shows the distinct count of Retailer whose sum of Volumes=0:
Here is my test pbix file:
Hope this helps.
Best Regards,
Giotto Zhi