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
shubham0420
New Member

Understanding how powerbi Query work?

Hi,

I am currently using PowerBI Desktop. I am using the below query 

 

 

 
var selected_x = SELECTEDVALUE('Dim#'[LL],51)
var selected_y = SELECTEDVALUE('Dim#'[UL],9999)
RETURN
CALCULATE(DISTINCTCOUNT(tBestellung[tKunde_kKunde]),
FILTER(
SUMMARIZE(FILTER(All(tBestellung),tBestellung[cType]="B"),
[tKunde_kKunde],
"Count of B",COUNT(tBestellung[cType])
),
[Count of B]>=selected_x && [Count of B] <= selected_y))+0

My doubt is that. I am applying summarize on a table outputed by filter. So, is this table tBestellung or it has no name?
Again i am gettting ouput from outside filter and the i am applying distinctCount on tBestellung[tKunde_kKunde]. So is this applied from the table produced by filter or this is applied on originial tbestellung. Please solve my query. I am online only. I am frustrated by this.

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @shubham0420,

 


 I am applying summarize on a table outputed by filter. So, is this table tBestellung or it has no name?


It can be recognized as an auxiliary table during the calculation. With that, no physical table is created.

 


Again i am gettting ouput from outside filter and the i am applying distinctCount on tBestellung[tKunde_kKunde]. So is this applied from the table produced by filter or this is applied on originial tbestellung. 


This outside filter is applied to the summarized table rather than the original tbestellung.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @shubham0420,

 


 I am applying summarize on a table outputed by filter. So, is this table tBestellung or it has no name?


It can be recognized as an auxiliary table during the calculation. With that, no physical table is created.

 


Again i am gettting ouput from outside filter and the i am applying distinctCount on tBestellung[tKunde_kKunde]. So is this applied from the table produced by filter or this is applied on originial tbestellung. 


This outside filter is applied to the summarized table rather than the original tbestellung.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.