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.
Hi everybody, I'm new using PowerBI, I started 2 days ago with a webbinnar but I'm having a lot of problems with one challenge: filtering between Dates with Hours.
In my report, I need to filter by Day and Time to know how many people has been logged, I can easily filter between dates with the Date slicer, but I want to specify the hour too.
I've created another auxiliar table called 'Table' and related with my primary table 'Log'. Then I've created the following mesure:
Prueba = IF(MAX('BatchTemporales'[Hora Filter])>=MAX('Table'[Hora Filter2]);TRUE();FALSE())
I want to filter the times after the selected hour ('Table'[Hora Filter2]), but it just work when both values are equal:
As you can see, I expect when HoraFilter is >= than HoraFilter2, my flag is TRUE.
Can you help me?
Solved! Go to Solution.
hi, @Anonymous
I have tested on my side, but not reproduce the issue. and we need more detail steps for us.
Best Regards,
Lin
hi, @Anonymous
I have tested on my side, but not reproduce the issue. and we need more detail steps for us.
Best Regards,
Lin
Thank you very much! The problem was my relation between tables!
Hi @Anonymous
What type is the data in fields 'Hora Filter' and 'Hora Filter2'?
Can you share your pbix file (with dummy data if necessary)?
Now I can't upload my .pbix because I have limited my job network, but I attach you two captures:
Hope it can help you, thanks!
@Anonymous
Why dont you use a calculate column and not a measure
Prueba = IF('BatchTemporales'[Hora Filter]>='Table'[Hora Filter2];TRUE();FALSE())
Hi @themistoklis, I've tried but as [Hora Filter2] is a variable that user selects, I think I've to use a Mesure.
Do you have another idea?
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 |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |