Anderson Silva
Anderson Silva
This expression should give you the wanted result: `Round((Now() - DateTime(1970,1,1, 0,0,0) ) * 86400000, 0)` You can replace `Now()` with another datetime value.
> We should have tests for this function as well if this is moved to this repository. No breaking changes in PA. Please check PR `9683327`.
After https://github.com/microsoft/Power-Fx/pull/2096, this result is expected. In this case, the `If` function has 2 incompatible possible return types. Are you experiencing any regression?
Thanks for your PR! Regarding the txt file test, please create a new `Update.txt` file at `...src\tests\Microsoft.PowerFx.Core.Tests\ExpressionTestCases`. The syntax should be ``` >> POWER-FX_EXPRESSION_1 EXPECTED_RESULT_1 >> POWER-FX_EXPRESSION_2 EXPECTED_RESULT_2 . ....
At the top of `Patch.txt` file we have `MutationFunctionsTestSetup` setup. You can check its implementation here: https://github.com/microsoft/Power-Fx/blob/c37f0963973b1ad80e829f0c8bb80567bfcb805d/src/tests/Microsoft.PowerFx.Interpreter.Tests/PowerFxEvaluationTests.cs#L146C13-L146C13 This setup creates a table variable `t1` populated with some records in advance....
There is a **CountRow** function already implemented. Is there any difference between **Count** and **CountRow**?
I was working on the **Proper** function when I came across to the following: According to the [documentation](https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/functions/function-lower-upper-proper#syntax) these are possible syntaxes: ``` Lower( SingleColumnTable ) Upper( SingleColumnTable ) Proper(...
We have https://github.com/microsoft/Power-Fx/issues/1550 under development which will unify Collect/Patch/Clear/ClearCollect functions with the Power Apps overloads. No ETA.
> Hi @anderson-joyle, any update on the ETA to support Patches and Defaults? Thanks The `Patch` function has all overloads available in Power Fx. Not sure if the changes made...
> Right. I added this to run some tests. Is there any harm on leaving it checked in? If I remove it I'll have to also remove some test cases....