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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors