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! Learn more

Reply
amsrivastavaa
Helper III
Helper III

Hiding based on Count of column value.

Hi Folks!! Hope you guys are well and fine!!

 

I have to implement something like below.

 

Source Table : 

 

ProjectTypeYearChannelAmount
P-1Credit2017120
P-2Credit2017130
P-3Credit20170200
P-4Credit20170300
P-1Credit2018120
P-2Credit2018130
P-3Credit2018110
P-1Debit2017120
P-2Debit2017130
P-3Debit2017040
P-4Debit2017050
P-1Debit2018160
P-2Debit2018170
P-3Debit2018180

 

Output (Matrix Visual) : 

 

Type20172018
Credit55060
Debit140210

 

I.e. output matrix simple summarizing the Amount based on Type and Year

 

Till here its fine, however my requirement is is the distinct count of Project for type and any given year is less than 3, then summation of Amount in output will be shown as Blank, e.g. as below

 

Requirement is detailed below : 

Let say my source table having data as shown below

 

ProjectTypeYearChannelAmount
P-1Credit2017120
P-2Credit2017130
     
     
P-1Credit2018120
P-2Credit2018130
P-3Credit2018110
P-1Debit2017120
P-2Debit2017130
P-3Debit2017040
P-4Debit2017050
P-1Debit2018160
P-2Debit2018170
P-3Debit2018180

 

I.e. I dont have data for P-3 and P-4 for Type=Credit and Year =2017, then my output will be shown as below

 

Type20172018
Credit 60
Debit140210

 

Just to explain the output, as there is Only Two project left after removal of P-3 and P-4 for Type=Credit and Year=2017, i.e. number of project is less than 2 for Type=Credit and Year=2017, hence summation of Amount for available project (less than 3) will be shown as BLANK.

 

Other variation could be, I have filter based on Channel (thats holds values as 1 and 0), lets say user selected Channel=1 then source data will be reduced to as shown below 

 

ProjectTypeYearChannelAmount
P-1Credit2017120
P-2Credit2017130
     
     
P-1Credit2018120
P-2Credit2018130
P-3Credit2018110
P-1Debit2017120
P-2Debit2017130
     
     
P-1Debit2018160
P-2Debit2018170
P-3Debit2018180

in such a scenario, we left (highliheted in BOLD in source data) with only 2 distinct project for Type=Credit & Year=2017, also for Type=Debit and Year=2017, hence output will be as below: 

 

Type20172018
Credit 60
Debit 210

 

In a nutshell, after applying all the filters, I need to implement hiding based on number of distinct Project available, if Number of Distinct Project for any combination (Type and Year) is less than 3, then I want to dispaly summation of Amount as BLANK.

 

Please suggest!!

 

Thanks

Amit 

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @amsrivastavaa ,

What is the basis for filtering the results below, a slicer or just a filter

 

Best Regards

Lucien

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