Forum Discussion
Meraki_jeet
3 years agoFrequent Visitor
Hello All, How to compare Date & Time using the text field. Dax or Measure?
Hi Everyone, Could someone please help me out with DAX for below as I am stuck in middle. Below is my sample data Resource Name DIS_sc...
- 3 years ago
Hi Meraki_jeet ,
Please try:
Column = var _a = SWITCH([DIS_scheduled], "SM_PROFILING_PRD",[Scan Time]-TIME(2,0,0), "MD_PROFILING_PRD",[Scan Time]-TIME(5,0,0), "LG_PROFILING_PRD",[Scan Time]-TIME(10,0,0), "XL_PROFILING_PRD",[Scan Time]-TIME(24,0,0)) var _c = COUNTX(FILTER('Table',[Scan Time]>=_a&&[Scan Time]<EARLIER('Table'[Scan Time])),[Resource Name]) return IF(_c<>BLANK(),"Issue","No issue")Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jianboli-msft
Community Support
3 years agoHi Meraki_jeet ,
Please try:
Column =
var _a = SWITCH([DIS_scheduled],
"SM_PROFILING_PRD",[Scan Time]-TIME(2,0,0),
"MD_PROFILING_PRD",[Scan Time]-TIME(5,0,0),
"LG_PROFILING_PRD",[Scan Time]-TIME(10,0,0),
"XL_PROFILING_PRD",[Scan Time]-TIME(24,0,0))
var _c = COUNTX(FILTER('Table',[Scan Time]>=_a&&[Scan Time]<EARLIER('Table'[Scan Time])),[Resource Name])
return IF(_c<>BLANK(),"Issue","No issue")
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Meraki_jeet
3 years agoFrequent Visitor
Thank you so much v-jianboli-msft . Cheers!! It did worked.