Forum Discussion
DISTINCT MEASURE
Hi Oros ,
This is related with the way you are filtering the measure, since you are doing a FILTER(SALES TABLE, ,[Sales]>0) this is returning the filter for the current selection and you are not overcoming the filter context in this case try the following code:
TOTAL ASSIGNED CUSTOMERS (EXCLUDING NO SALES) = CALCULATE(DISTINCTCOUNT(Customer[No]),FILTER(ALL('SALES TABLE'),[Sales]>0))Hi MFelix ,
Thank you very much for your reply.
I think that your solution is very, very close to solve this problem. Maybe there is something that I am still doing wrong. Thank you again for your kind help!
I have four measures:
Selection scenario B:
IF an item AND a salesperson are selected, all the numbers in the table
change but they are all the same numbers. The 3 cards stay correct.
In the table, only CUSTOMER WHO BOUGHT column is correct for the selection made.
Selection scenario C:
IF only all items is selected and a salesperson here is the problem:
- Ashish_Mathur3 years agoSuper User
Hi,
Share the download link of your PBI file.
- Oros3 years agoPost Prodigy
Hi Ashish_Mathur ,
Thank you again for your reply and sorry for the confusion. I basically need 4 measures (will be as 4 columns) and must follow based on the context (selection). Here is the summary:
- MFelix3 years agoSuper User
Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.- Oros3 years agoPost Prodigy
Hi MFelix and Ashish_Mathur,
There are only 2 tables involved. Here is the mock up. Thank you so much for your kind help.
- Ashish_Mathur3 years agoSuper User