You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DAX Formatter is a service available at https://www.daxformatter.com
4
+
DAX Formatter is a service available at https://www.daxformatter.com.
5
5
The service receives DAX expressions and format them according to rules for [DAX code formatting](https://www.sqlbi.com/articles/rules-for-dax-code-formatting/).
6
6
The NuGet package contains a client library to invoke the serivce from your .NET application.
7
7
All the requests are designed to be asynchronous.
@@ -13,13 +13,12 @@ Invoke the `FormatAsync` method for each request.
13
13
Possibly, use the `DaxFormatterMultipleRequest` structure to provide more statistical details about the database and the server (all the names are anonymized and used only to count the number of unique servers/databases serviced).
14
14
15
15
# DaxFormatterClient
16
-
17
16
The default constructor creates an instance of the client using the current assembly name and version to identify the client. You can specify an application name and version in the constructor arguments.
18
17
The client instance resolve the server endpoint just once and reuse it in following requests.
19
18
It is suggested to reuse the same instance in multiple requests to minimize the latency.
20
19
```csharp
21
20
varformatter=newDaxFormatterClient();
22
-
varresponse1=awaitformatter.FormatAsync( "evaluate('Table') order by 'Table'[Column]" );
21
+
varresponse=awaitformatter.FormatAsync( "evaluate('Table') order by 'Table'[Column]" );
23
22
```
24
23
# DaxFormatterMultipleRequest
25
24
Use the `DaxFormatterMultipleRequest` class to send multiple DAX expressions in a single API call.
@@ -33,7 +32,7 @@ var request = new DaxFormatterMultipleRequest
33
32
// Format arguments (you can skip all of them to keep the default values)
0 commit comments