Forum Discussion

nick9000's avatar
nick9000
Frequent Visitor
8 years ago
Solved

Vendor Count

Hi,   I am looking to create a card which will show the number of vendors used for the month. The report irs driven by slicers by year by month and I can currently get the vendor count in a table a...
  • nick9000's avatar
    nick9000
    8 years ago

    Thanks Ashish, 

     

    You put me on the right track and ended using which seems to work:

     

    vendor count = CALCULATE(DISTINCTCOUNT(Data1[Vendor Name]),'Data2'[Detail PnL Name]= "Materials")

     

    The filter was struggling with the GL Actual Materials as I didn't mention is was a measure as below, also with values to excludes being blanks.

     

    GL Actual Materials = CALCULATE(SUM(Data1[Actual_Amount]) ,Data2[Detail PnL Name]= "Materials")

     

    Thanks

     

    Nick