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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Tip to transform data using a similar method to COUNT on Excel

Hey there,

 

I'm rather new to PowerBi hence wanted to get some insights.

I have gotten a dataset where i'm trying to count the number of times a certain keyword appears and transform it into another table. However as it is not as simple as Excel, I was wondering if anyone could advice?

 

I tried to do a quick illustration using Excel

Weilsong_0-1626082728467.png

 

3 REPLIES 3
Payeras_BI
Solution Sage
Solution Sage

Hi @Anonymous ,

I would always go for PQ for these types of transformations, but you still could manually unpivot your table with DAX.

 

UNPIVOTED TABLE = 
UNION (
    SELECTCOLUMNS (
        'Table',
        "Opportunity Number", 'Table'[Opportunity Number],
        "Value", 'Table'[Criteria 1],
        "Attribute", "Criteria 1"
    ),
    SELECTCOLUMNS (
        'Table',
        "Opportunity Number", 'Table'[Opportunity Number],
        "Value", 'Table'[Criteria 2],
        "Attribute", "Criteria 2"
    ),
    SELECTCOLUMNS (
        'Table',
        "Opportunity Number", 'Table'[Opportunity Number],
        "Value", 'Table'[Criteria 3],
        "Attribute", "Criteria 3"
    )
)

 

Payeras_BI_0-1626189035866.png

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Payeras_BI
Solution Sage
Solution Sage

Hi @Anonymous ,

Would you consider first to unpivot the table in the PQ editor? This would ease things.

Payeras_BI_0-1626087995730.png

Payeras_BI_1-1626088106617.png

Payeras_BI_2-1626088146550.png

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Anonymous
Not applicable

Hi @Payeras_BI ,

Thanks for the tip. However, the data that i need to pivot is not from the Raw Data set. I've manipulated the raw data sets using from DAX formulas outside the PQ Editor. Is there a way to do it outside the PQ editor?

Thanks!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.