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
arthur_mq
Frequent Visitor

DAX formula - count now working

Hi, I need help with this DAX formula. The table 'New SBLF List' has a column named “Title” and a second column called “ConsentorDiscussion”.

 

I created a DAX formula below to count the times the text "Discussion w/ Presentation" appears under the “ConsentorDiscussion” column. And the then list each text under the “Title” column when the “ConsentorDiscussion” value is "Discussion w/ Presentation".

 

The count shows blank even when there a few values listed under the “ConsentorDiscussion” column equals "Discussion w/ Presentation". I tested the count section of the formula separated, and this works fine, but when I added the second section to get the list then only the list shows but not the count. Any help with this will be greatly appreciated. Thanks

 

Discussion w/Presentation List&Count_M =

"Count: "

&

CALCULATE(

    COUNTROWS('New SBLF List'),  

    FILTER(

        'New SBLF List',

        CONTAINSSTRING('New SBLF List'[ConsentorDiscussion], "Discussion w/ Presentation ")

    )

)

 

&UNICHAR(10)&

//List

CONCATENATEX (

        FILTER ( 'New SBLF List', 'New SBLF List'[ConsentorDiscussion] = "Discussion w/ Presentation" ),

        'New SBLF List'[Title] & UNICHAR(10),

        UNICHAR(10)

    )

    &UNICHAR(10)

3 REPLIES 3
arthur_mq
Frequent Visitor

I found the issue with the DAX code. Issue resolved.

audreygerred
Super User
Super User

I suggest making a table or a matrix with Title and your count, and have it filtered to "Discussion w/Presentation". This will get you what you are looking for. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @audreygerred 

The problem is that I must match an existing layout to show this information where the columns are dates and the counts and items listed are based on five different sets of calculations very similar to the criteria on the code above.  The raw data is being pulled from a SharePoint list with the records listed in rows, so I had to rearrange the data using a Matrix to match the layout of the existing document.

This is what I built so far using a Matrix and a measure with several formulas, but each count at the top must be followed by the list of their corresponding items. As you can see the items are listed after the counts, and not with their corresponding count.

 

2/28/23

3/14/23

 

Discussion w/Presentation: 6

 

Discussion w/0 Presentation: 4

 

Consent: 6

 

 

General Services - Adopt a Resolution to Summarily Vacate and Declare Surplus Land

 

Establish Authority to Authorize and Award a Construction Manager at Risk Contract for Improvements at Heritage Park Building Project

 

Hillside Meadows Open Space Vacation

 

Feasibility Analysis on Tiered Winery Expansion

 

Tentative-Memo: Recycling Capacity Study

 

……

 

 

 

Discussion w/Presentation: 5

 

Discussion w/0 Presentation: 8

 

Consent: 4

 

 

Approve Cooperative Agreement Stormwater Monitoring Coalition and Authorize Contracts to Implement Projects

 

Feasibility Analysis on Tiered Winery Expansion

 

Tentative-Memo: Recycling Capacity Study

 

Authorization to Issue Request for Proposals and to Negotiate and Award a Contract for Water Quality Monitoring and Reporting Services

 

 

 

……

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.