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

Need help with DAX please!!

Hi.
 
I am trying to do something that seems fairly simple but failing miserably. My background data is in a SharePoint list.
 
2021-09-14_9-52-12.png
I am trying to accomplish the following:
 
Total number of items / rows that match the following calculation:
 
Importance = "1" AND Results = "Success" FOR EACH Area (A through D)
 
Choice Fields:
 
Importance
  • 1
  • 2
  • 3
 
Results
  • Success
  • Partial Success
  • Disappointment
 
Area
  • A - Con
  • B - Acc
  • C - CC
  • D - CL
 
THANK YOU VERY MUCH FOR ANY AND ALL HELP! TENA
1 ACCEPTED SOLUTION

Hello there @tmatta2495 ! If I understood your question correctly I think you dont need the 'Measures of Success'[Area] = "A - Con" condition in your calculate formula since PBI will do it when you add the measure to the table/matrix visual. Try adding this measure to your table/matrix visual:

Impt1S =
CALCULATE (
COUNTROWS ( 'Measures of Success' ),
'Measures of Success'[Importance Text] = "1",
'Measures of Success'[Results] = "Success"
)

 Hope this answer solves your problem! If you need any additional help please @ me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

View solution in original post

7 REPLIES 7
goncalogeraldes
Super User
Super User

Hello there @tmatta2495 could you please share how are you currently calculating your fields? A sample measure would be enough just to know where the values are!

 

For additional help, please @ me in your reply!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

@goncalogeraldes 

 

Thank you SO much!  I am including the measures I used for the calculations.  I am new to Power BI so I hope it makes sense.  Thanks!

 

First measure to get number of items with an Importance of "1" for Area "A - Con"

 

Impt1A =
CALCULATE (
COUNTROWS ( 'Measures of Success' ),
'Measures of Success'[Importance Text] = "1",
'Measures of Success'[Area] = "A - Con"
)

Second measure - using first measure - to calculate the number of items with Result of "Success"

 

Impt1AS =
CALCULATE (
[Impt1A],
'Measures of Success'[Results] = "Success"
)

Hello there @tmatta2495 ! If I understood your question correctly I think you dont need the 'Measures of Success'[Area] = "A - Con" condition in your calculate formula since PBI will do it when you add the measure to the table/matrix visual. Try adding this measure to your table/matrix visual:

Impt1S =
CALCULATE (
COUNTROWS ( 'Measures of Success' ),
'Measures of Success'[Importance Text] = "1",
'Measures of Success'[Results] = "Success"
)

 Hope this answer solves your problem! If you need any additional help please @ me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

OMG @goncalogeraldes !!

 

You have no idea how much time, effort and total frustration you have saved me.  It worked perfectly!!!  And it is for a work deadline.  I am so thrilled and TRULY appreciate your help!

 

I am going to send you a invite to connect on LinkedIn.  Feel free to reach out to me if you ever need anything.

 

Tena

Hey there @tmatta2495 ! I'm glad I could be of help!

 

Feel free to add me in LinkedIn! 😊

parry2k
Super User
Super User

@tmatta2495 how your raw data look like? Can you post it in a table format with the expected output? Not sure that blue image is how your raw data table looks like. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k 

 

Here ya go, I hope it helps!  Thank you so much!  Tena

 

2021-09-14_12-09-22.png

 

CC:  @goncalogeraldes 

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