Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Where to write count in this expression ?

$
0
0

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)

 

TemperatureDate
33.209/11/2016
33.509/11/2016
33.609/11/2016
32.109/11/2016
32.509/11/2016
32.409/11/2016

33

09/11/2016

 

I need only one count for one date, where to put count and order by in it?

Thanks for help.


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>