Bitrix24 Helpdesk

Filter report data by different dates in Microsoft Power BI

The BI connector lets you filter report data by different date fields. In the advanced editor, you can set a date range and choose which date field to use for filtering:

  • DATE_CREATE — creation date
  • DATE_MODIFY — modification date
  • DATE_CLOSED — closing date

The filter applies before the data loads into Power BI. You do not need to create additional filters in the report.

For example, you can create a report that shows only closed deals for a specific period.

Go to the Transform data section and open bx24_load_entity in the advanced editor.

Replace the current code with the following example:

 Content = Json.FromValue([dateRange = [

                            startDate = #date(2022, 10, 23),
                            endDate = #date(2022, 10, 23)

                            //startDate = Date.AddYears(Date.From(DateTime.LocalNow()),-10),
                            //endDate = Date.From(DateTime.LocalNow())
                            
                            ],
                            key = #"Secret key",
                            configParams = [ timeFilterColumn = "DATE_CLOSED" ]
                            //DATE_CREATE (23.10.2022)
                            //DATE_MODIFY (23.10.2022)
                            //DATE_CLOSED (23.10.2022)
                        ]
                    )
                ]
            ),
            jd = Json.Document(response)

Use the following parameters:

  • startDate and endDate — define the date range for the report data.
  • configParams = [ timeFilterColumn = "*****" ] — defines which date field to use for filtering.

Available values for timeFilterColumn:

  • DATE_CREATE — creation date
  • DATE_MODIFY — modification date
  • DATE_CLOSED — closing date

In this example, the report filters deals by the closing date 23.10.2022.


Was this information helpful?
Thank you for your feedback.
Get Implementation Help from a Partner
That's not what I'm looking for
Complicated and incomprehensible text
The information is outdated
It's too short. I need more information
I don't like the way this tool works
Get your Bitrix24 set up by local professionals
FIND BITRIX24 PARTNER NEAR ME
implementation_helper_man
Go to Bitrix24
Don't have an account? Create for free
Related articles
Connect Microsoft Power BI Transfer CRM entities to Microsoft Power BI Hide IDs at the beginning of text fields in Power BI Add multiple SPAs to a Power BI report Limit the number of columns in a Microsoft Power BI entity