The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
86 | |
84 | |
36 | |
34 | |
34 |
User | Count |
---|---|
94 | |
79 | |
65 | |
55 | |
52 |