Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a table in which I have a column for dates. I want to count the number of values in it which are in the Next week. How to do that?
I tried using the below code, but it doesn't work.
let
Source = List.Count(List.Select(Date_Column[Date], each Date.IsInNextWeek(Date_Column[Date])="TRUE")])
in
Source
Solved! Go to Solution.
Hi @Gangula,
Please try this:
= Table.AddColumn(#"Previous Step", "Count Dates", each Table.RowCount(Table.SelectRows(Source, each Date.IsInNextWeek([Dates])=true)))
Best regards,
Yuliana Gu
Hi @Gangula,
Please try this:
= Table.AddColumn(#"Previous Step", "Count Dates", each Table.RowCount(Table.SelectRows(Source, each Date.IsInNextWeek([Dates])=true)))
Best regards,
Yuliana Gu
User | Count |
---|---|
77 | |
76 | |
44 | |
31 | |
26 |
User | Count |
---|---|
98 | |
89 | |
52 | |
48 | |
46 |