Forum Discussion
write a measure to bring a specific value based on date
Hello Everybody
How do I write a measure which brings the value (a number) from a column in a table based on todays date? Unfortunately I can't seem to insert the table on here for you to see- the post keeps telling me I have inserted invalid HTML- whatever that means.
Sorry this is a bit vague without the table
Thanks
Claire
Hi Anonymous ,
You may create measure like DAX below.
Measure1= CALCULATE (FIRSTNONBLANK ( Table1[Number], 1 ),FILTER ( ALLSELECTED( Table1), Table1[Date] = TODAY() ))
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- amitchandakSuper User
Anonymous , not very clear, can you explain ?
refer : https://community.powerbi.com/t5/Desktop/parameterize-connection/m-p/205900#M90712
https://radacad.com/change-the-source-of-power-bi-datasets-dynamically-using-power-query-parameters
- v-xicaiCommunity Support
Hi Anonymous ,
You may create measure like DAX below.
Measure1= CALCULATE (FIRSTNONBLANK ( Table1[Number], 1 ),FILTER ( ALLSELECTED( Table1), Table1[Date] = TODAY() ))
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.