Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 38 | |
| 21 | |
| 20 |
| User | Count |
|---|---|
| 142 | |
| 105 | |
| 63 | |
| 36 | |
| 35 |