Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
I would like some help
How do I search for a value and a certain date?
I need to do something similar to a SQL SELECT MAX.
What function can be used?
Thank you,
LRFeltz
Solved! Go to Solution.
Hi @LRFeltz,
Suppose there is a table containing three columns (Column1,Column2,Column3), now you need to get the max value in Column2 and its corresponding date.
In this scenario, you can use SelectColumns function to return the two columns you need first.
NewTable=SelectColumns('TableName',"Date",'TableName'[Column1],"Value",'TableName'[Column2])
Then use Max function to get the max value based on above table.
NewTable2=CalculateTable('NewTable',FILTER('NewTable','NewTable'[Date]=MAX('NewTable'[Date])))
Then, you can drag a table visual to display the data records in NewTable2.
If I have something misunderstood, please share your sample data.
Thanks,
Yuliana Gu
Hi @LRFeltz,
Suppose there is a table containing three columns (Column1,Column2,Column3), now you need to get the max value in Column2 and its corresponding date.
In this scenario, you can use SelectColumns function to return the two columns you need first.
NewTable=SelectColumns('TableName',"Date",'TableName'[Column1],"Value",'TableName'[Column2])
Then use Max function to get the max value based on above table.
NewTable2=CalculateTable('NewTable',FILTER('NewTable','NewTable'[Date]=MAX('NewTable'[Date])))
Then, you can drag a table visual to display the data records in NewTable2.
If I have something misunderstood, please share your sample data.
Thanks,
Yuliana Gu
It worked.
thank you.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 64 | |
| 39 | |
| 33 | |
| 23 |