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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
admin11
Memorable Member
Memorable Member

My Table 3 count number customer by CLASS only produce 1 column data ?

Hi All

 

My below expression can produce Table 1 with 3 column of data on sales amount which correct :-

_Segment sales_SGD_1 = CALCULATE([SALES SGD],
FILTER(ADDCOLUMNS(VALUES(SALES[Customer Name]),
"ABCD",CALCULATE(divide([SALES SGD],'RATE'[_rate]),CALCULATETABLE(VALUES(SALES[Customer Name])))),
COUNTROWS(FILTER(Brackets,
[abcd]>=Brackets[ Lower ]&&[ABCD]<=Brackets[ Upper ]))>0))
admin11_0-1641765788189.png

My below expression can produce Table 2 with 3 column of data in GP %  which correct , with the help from @PC2790 :-

 

_Segment GP_SGD_1 = CALCULATE([GP SALES %],
FILTER(ADDCOLUMNS(VALUES(SALES[Customer Name]),
"ABCD",CALCULATE(divide([SALES_],'RATE'[_rate]),CALCULATETABLE(VALUES(SALES[Customer Name])))),
COUNTROWS(FILTER(Brackets,
[abcd]>=Brackets[ Lower ]&&[ABCD]<=Brackets[ Upper ]))>0))
admin11_1-1641765880699.png

Hope some one can advise me where i go wrong ?

 

My PBI file :-

https://www.dropbox.com/s/po4yd0q8nfza58g/PBS_VER0313.pbix?dl=0

 

Above 3 table report when i select SOURCE = PM , The table 3 only produce 1 column , But if i select SOURCE = TA , Table 3 can produce 3 column correct report. as below :-

 

admin11_0-1641766999700.png

 

 

 

Paul 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @admin11 ,

I can't open this pbix file because of the large data. 

I have create a simple example. Please have a look.

11.PNG

Then I put it in Matrix table. It looks like below.

22.PNG

I would filter the data.

33.PNG44.PNG

This happens because only the condition >5000 is met in PM.

 

Best Regards

Community Support Team _ Polly

 

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

Anonymous
Not applicable

Hi @admin11 
Did my answer solve your problem? If I have misunderstood your meaning, please provide simple pbix without privacy information and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @admin11 
Did my answer solve your problem? If I have misunderstood your meaning, please provide simple pbix without privacy information and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

Anonymous
Not applicable

Hi @admin11 ,

I can't open this pbix file because of the large data. 

I have create a simple example. Please have a look.

11.PNG

Then I put it in Matrix table. It looks like below.

22.PNG

I would filter the data.

33.PNG44.PNG

This happens because only the condition >5000 is met in PM.

 

Best Regards

Community Support Team _ Polly

 

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

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.