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.
Hello everyone,
I want to use one measure recent as filter. My power bi use DirectQuery. So I can't use calculate or maxx to add one calculated column.
As the first print screen, I want to only keep recent = 0.
So I add recent in filter section. Then I choose recent is 0.
Recent is a measure for choose the most recent record.
Finally, the result is blank.
Thanks a lot!
Solved! Go to Solution.
@erikzzy , Seem like you need data when created at = updated at individual table
calculate([Recent],report[createdate]=report[updatedat])
or
calculate([Recent],filter(report,report[createdate]=report[updatedat]))
@erikzzy , Seem like you need data when created at = updated at individual table
calculate([Recent],report[createdate]=report[updatedat])
or
calculate([Recent],filter(report,report[createdate]=report[updatedat]))
Hello @amitchandak,
Thanks your reply,
I have tried your solution.
If I use measure 2 to filter, my table is blank like this,
And I can't understand what do you meaning in an individual table. I need a new table only one measure [recent]?
Thank you again,
ErikZhang
Hi @erikzzy ,
I have a workaround for you, if your table only has this measure.
Then you can try to create another measure or change the recent to the below one:
if recent = 0, 0, blank()
And I think the table will show what you want.
Please try.
Aiolos Zhao
Proud to be a Super User!
Hi @AiolosZhao ,
Thanks your reply.
I try your solution. But in fact there lastDate is another measure. So my table do not work.
I have tried your proposition,
Hi @erikzzy ,
Could you please show some sample data and the result that you want in a screenshot or excel?
Thanks.
Aiolos Zhao
Proud to be a Super User!
Thanks your reply. I found a problem of data modelling.
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 |
---|---|
114 | |
98 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |