Forum Discussion
Saxon10
5 years agoPost Prodigy
Frequency Count
I have a two tables are data and report. In data table contain Date, Item and Vendor. Report table contain item only. (Item stored as text format. Item column data type is mixed ā Sometimes nu...
- 5 years ago
Saxon10
I created a measure, you can add the ITEM column from Report and the measure. Check the attached file. You can use the slicer to filter for any date period.Freq = MAXX( TOPN( 1 , ADDCOLUMNS(VALUES(DATA[Vendor]),"Count", CALCULATE(COUNT(DATA[Vendor]))),[Count] ), [Vendor] ) - 5 years ago
Saxon10
Please find below the formula for the calculated Column that will return only for available vendors for April 2020 to April 2021.Freq Column = CALCULATE( MAXX( TOPN( 1 , ADDCOLUMNS(VALUES(DATA[Vendor]),"Count", CALCULATE(COUNT(DATA[Vendor]))),[Count] ), [Vendor] ), FILTER(all(DATA[DATE]), DATA[DATE] >= DATE(2020,4,1) && DATA[DATE] <= DATE(2021,4,30) ) )
Fowmy
5 years agoSuper User
Saxon10
Please find below the formula for the calculated Column that will return only for available vendors for April 2020 to April 2021.
Freq Column =
CALCULATE(
MAXX(
TOPN(
1 ,
ADDCOLUMNS(VALUES(DATA[Vendor]),"Count", CALCULATE(COUNT(DATA[Vendor]))),[Count]
),
[Vendor]
),
FILTER(all(DATA[DATE]), DATA[DATE] >= DATE(2020,4,1) && DATA[DATE] <= DATE(2021,4,30) )
)
Saxon10
5 years agoPost Prodigy
Thanks for your reply and help.
Your solution working well.