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

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

Reply
Tommyvhod
Helper II
Helper II

Issue with formula

Hi all

With a little help here I added a dax formula to my report. It works i a chart. But when I add to  a matrix all parts filtered with a group has the same results. I modified the formula with the distinctcount and it seems to work.

 

The only issue I have, after adding this formula all the parts and all operations are visible in the matrix but only the filtered/slicered parts has values ( because of allselected )

 

How could I hide the empty rows and colums?

 

DAX:

 

Max Op 2 matrix = VAR _OP = MAX(Data[Operacia])
VAR _table = SUMMARIZE(ALLSELECTED(Data);Data[ID];"_MAX";MAX(Data[Operacia]))
VAR _count = CALCULATE(DISTINCTCOUNT(Data[ID]);FILTER(_table;[_MAX]= _OP))
RETURN
IF (ISBLANK(_count);0;_count)
 
Thank You
1 ACCEPTED SOLUTION
Tommyvhod
Helper II
Helper II

Yeah. The issue was the last row

 

IF (ISBLANK(_count);0;_count)

 

I changed the 0 to blank() and the problem was solved

View solution in original post

1 REPLY 1
Tommyvhod
Helper II
Helper II

Yeah. The issue was the last row

 

IF (ISBLANK(_count);0;_count)

 

I changed the 0 to blank() and the problem was solved

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.