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.
this is my sql query:
select count(Temperature) as TempUP, max([Date]) from Second_18FE34D47A8F$ where Temperature>25
group by [Date]
order by [Date]
same expression I want to write in DAX, till now I am done this:
EVALUATE
SUMMARIZE (
CALCULATETABLE (
Second_18FE34D47A8F,
FILTER ( Second_18FE34D47A8F, Second_18FE34D47A8F[Temperature] > 25 )
),
Second_18FE34D47A8F[Temperature],
Second_18FE34D47A8F[Date]
)
It produces this result, In DAX studio.(a few rows of result set)
Temperature | Date | |
33.2 | 09/11/2016 | |
33.5 | 09/11/2016 | |
33.6 | 09/11/2016 | |
32.1 | 09/11/2016 | |
32.5 | 09/11/2016 | |
32.4 | 09/11/2016 | |
33 |
|
I need only one count for one date, where to put count and order by in it?
Thanks for help.
Solved! Go to Solution.
Hi, @AnandRanga
Please try the formula below:
New Table = SUMMARIZE(
CALCULATETABLE (
Second_18FE34D47A8F,
FILTER ( Second_18FE34D47A8F, Second_18FE34D47A8F[Temperature] > 25 ) ),
Second_18FE34D47A8F[Date],
"Count",
COUNT(Second_18FE34D47A8F[Temperature])
)
Thanks,
Yuliana Gu
Hi, @AnandRanga
Please try the formula below:
New Table = SUMMARIZE(
CALCULATETABLE (
Second_18FE34D47A8F,
FILTER ( Second_18FE34D47A8F, Second_18FE34D47A8F[Temperature] > 25 ) ),
Second_18FE34D47A8F[Date],
"Count",
COUNT(Second_18FE34D47A8F[Temperature])
)
Thanks,
Yuliana Gu
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |