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.
Morning all,
I am hoping for a little help to convert the following formual to Dax or advice as this maybe easier utilising a calculated table?
Basically it is counting distinct values based on the date
=SUM(--(FREQUENCY(IF([@[Offer_Date]]=[Offer_Date], COUNTIF([Offer_Account], "<"&[Offer_Account]), ""), (COUNTIF([Offer_Account], "<"&[Offer_Account])))>0))
Any help would be greatly appreciated
Cheers
Solved! Go to Solution.
Found this in another topic and works great once adjusted for my table and column names
Measure 2 = var _table=SUMMARIZE('Table','Table'[Shop],'Table'[Date],"distinctcount",DISTINCTCOUNT('Table'[Customer])) return SUMX(_table,[distinctcount])
Found this in another topic and works great once adjusted for my table and column names
Measure 2 = var _table=SUMMARIZE('Table','Table'[Shop],'Table'[Date],"distinctcount",DISTINCTCOUNT('Table'[Customer])) return SUMX(_table,[distinctcount])
Post a small copiable dataset together with expected results.
Regards
Perhaps this measure:
MyMeasure =
CALCULATE(
DISTINCTCOUNT( 'Table'[Offer_Account] ),
ALLEXCEPT( 'Table', 'Table'[Offer_Date] )
)
Regards
Thank you but that seems to be counting Distinct Accounts only....if the account appears on different days i need it to count both instances
hope that makes sense
But unless I'm mistaken your Excel formula is not doing that - the part
IF([@[Offer_Date]]=[Offer_Date],...
means that the counts will be for a given date only.
Regards
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 |
---|---|
43 | |
20 | |
20 | |
16 | |
15 |
User | Count |
---|---|
46 | |
28 | |
25 | |
18 | |
17 |