Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Date filters doesn't work correctly with Mixed model

Hey!

I'm trying to make my report faster using Direct Query but the is a problem with date filtering.

I'm using mixed storage mode

As the first picture shows I've tried to make localTime and LocalDate-deductions for both DQ-tables using UTC-timestamps from those tables. FirstTest is same data as TestResultsDQ but with import and I've reduced some columns off I don't need in FirstTest.

Then I've got calender table where Date is linked to LocalDate-colums in those DateTime-tables.

Tables.png

 

 Then to the report side.
With those links above this page below shows the right amounts when it's not filtered with any date.
Filtering with one specific day ("This Day" in relative or  for example 24.8.2019 to 24.8.2019) also gives right result.

Problem occurs when I try to filter anything else than specific day or whole timeframe.TestResults-Tab.png

 

 

 With any any filters page looks like this:
TestResults-Error.png

 Same happens when using the date range below reset button. If I take the choice off from Month or Year it loads the fault resons fine but FPY, Products and First test OK keep spinning.
If they eventually load, amounts from whole two months (Just filtering month, so takes both 2019 and 2020) is something like 100 or less (average amount per day for Products is between 500-1000).
The error message is the same for every fault type tile.

Next I will share you the DAX measures for this page:

Products-tile: 

AllTestedProducts =
CALCULATE(
DISTINCTCOUNT(TestResultsDQ[SerialNumber]);
TestResultsDQ[CellName]<>"xxxxxx"
)

First test OK:
StraightOK =
CALCULATE(
DISTINCTCOUNT(TestResultsDQ[SerialNumber]);
FILTER(TestResultsDQ;TestResultsDQ[Result]=1)
)

Fault Type 1:
FaultType1 =
CALCULATE(
COUNT(TestResultsDQ[SerialNumber]);
FILTER(TestResultsDQ;TestResultsDQ[Result]=59)
)

 
Fault Type 2:

AllFaultType2 =
CALCULATE(
COUNT(TestResultsDQ[SerialNumber]);
TestResultsDQ[Description]="FaultType2"
)

 

Fault Type 3:

AllFaultType3 =
CALCULATE(
COUNT(TestResultsDQ[SerialNumber]);
TestResultsDQ[Description]="FaultType3"
)

 

Fault Type 4:

AllFaultType4 =
CALCULATE(
COUNT(TestResultsDQ[SerialNumber]);
TestResultsDQ[Description]="FaultType4"
)


Fault Type 5:

 

AllFaultType5 =
CALCULATE(
COUNT(TestResultsDQ[SerialNumber]);
TestResultsDQ[Description]="FaultType5"
)
 
Is there any possible solution to get that date filtering work correctly?
I'm more than happy to answer your questions if this was bit too confusing presentation for the problem.
3 REPLIES 3
Sendilnathan
New Member

Hi@Anonymous Am facing same issue. Have you found a solution for this?

If so can you please post and mark it as accepted solution. Thanks.

v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to the documentation.

Error the incoming request has too many parameters. The server supports a maximum of 2100 parameters. 

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Think there are two many bidirectional joins you should only have those when most needed. 1-M single direction is best.

 

Check the query reduction

https://www.youtube.com/watch?v=4kVw0eaz5Ws

and this one

https://www.youtube.com/watch?v=GWAWPCAjkEY

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.