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

Grouped view in Visual

Hi,

 

I'm new at this. Hopefully someone can help me.
Problem: i want to see 1 number and behind it, per status, OK or NOT OK. Can anyone tell me how to do that?
Example made in Excel: 

Knipsel2.PNG

 

The check if something is OK or NOT OK is working with de DAX formula. 

 

This is how the data looks that i am using.

Data:

Knipsel1.PNG

 

This is how the visual looks like now:
Knipsel3.PNG

 

I'm hoping someone can help me :).

Grtz,
Shakti Janki

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Shakti_Janki,

 

I am unable to reproduce your issue. In my test, I created a calculated column which returned OK/Not OK based on source table. Then, I used a matrix visual to display data, add [Nummer] into Rows section, add [Status] into Columns section and add the new column into Values section.

1.PNG

 

In your scenario, it seems that the data was not grouped based on [Nummer] in visual, how did you make the DAX formula?

 

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

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Shakti_Janki,

 

I am unable to reproduce your issue. In my test, I created a calculated column which returned OK/Not OK based on source table. Then, I used a matrix visual to display data, add [Nummer] into Rows section, add [Status] into Columns section and add the new column into Values section.

1.PNG

 

In your scenario, it seems that the data was not grouped based on [Nummer] in visual, how did you make the DAX formula?

 

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.

Hi @v-yulgu-msft,


Thanks! I think i got it right now. The first thing was that i was not using the Matrix visual, but the Table visual.
When i changed that, i followed you advice to add [Nummer] into Rows section and added the new columns into the Values section. These changes resulted in this:

Knipsel5.PNG

 

The DAX formula i used was: Impact analyse akkoord = IF(Query1[Status]="Impact Analyse geaccordeerd";IF(Query1[Functie]="FB";"OK";IF(Query1[Functie]="ICT Beheerder";"Akkoord";IF(Query1[Functie]="Changemanager";"Akkoord";"Niet akkoord")))) 

 

Thanks for all your help!
Also @vanessafvg

vanessafvg
Super User
Super User

@Shakti_Janki

 

it makes sent to pivot in power query in my mind. but there might be a better way to do this

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-common-query-tasks/  (look under the pivot section)

 

this is what i would do

 

1. in power query add a custom column with a value "ok"

2. pivot on the status column using the custom column as your value

 

what you will end up with is all your columns like your first graph except there will be 1 and 0, 1 = ok, 0 = not ok.  

 

 

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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