Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
If statement 在Power BI中将时间格式更改为30分钟间隔_If Statement_Powerbi - Fatal编程技术网

If statement 在Power BI中将时间格式更改为30分钟间隔

If statement 在Power BI中将时间格式更改为30分钟间隔,if-statement,powerbi,If Statement,Powerbi,我需要将时间格式更改为30分钟格式。下面是一个例子: 3:27:16 am需要更改为3:00 am间隔 我需要在Power BI中使用“if”语句。在DAX中: 在DAX或PowerQuery中,MyTime=TIME(HOUR('Table'[TimeValue]),IF(MINUTE('Table'[TimeValue])

我需要将时间格式更改为30分钟格式。下面是一个例子:

3:27:16 am
需要更改为
3:00 am
间隔

我需要在Power BI中使用“if”语句。

在DAX中:


在DAX或PowerQuery中,MyTime=TIME(HOUR('Table'[TimeValue]),IF(MINUTE('Table'[TimeValue])<30,0,30),0)

?如果值是-3:37:16 amHi Murray,我需要PowerQuery中的IF语句……请帮助。