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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
KrithikaBaskar
New Member

Create a table with group by of min value doesn't contain zero's using dax

Hi,

   Need to create a table from existing table by group by function with min value doesn't include zero on that. I have use the below dax for that

Min value =
GROUPBY('Table'[Country],
'Table'[colour],
'Table'[category],
"Min Price",
MINX(CURRENTGROUP(),MIN('Table'[Price per kg])))
 
I doesn't want to create using Mquery.. I am trying in dax, creating a new table

 

Regards,

1 ACCEPTED SOLUTION

Hey @KrithikaBaskar ,

 

this DAX statements creates a table without zeros

Min Table = 
FILTER(
    ADDCOLUMNS(
        SUMMARIZE(
            'Table'
            , 'Table'[Country]
            , 'Table'[Category]
            , 'Table'[Colour]
        )
        , "Min Price", CALCULATE( MIN( 'Table'[Price per kg] ) )
    )
    , [Min Price] <> 0
)

Hopefully, this is what you are looking for. If not provide sample data and the expected result.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

4 REPLIES 4
TomMartens
Super User
Super User

Hey @KrithikaBaskar 

 

use this DAX statement to create the table:

Min Table = 
ADDCOLUMNS(
    SUMMARIZE(
        'Table'
        , 'Table'[Country]
        , 'Table'[Category]
        , 'Table'[Colour]
    )
    , "Min Price", CALCULATE( MIN( 'Table'[Price per kg] ) )
)

This is how my base table looks:

image.png

And this is how the table looks like that is created from the above DAX statement:

image.png

Hopefully, this is providing what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hi Tom,

    Thank you for the reply.. I am expecting one more condition in this dax like removing zero values also

 

Thanks,

Krithika

 

Hey @KrithikaBaskar ,

 

this DAX statements creates a table without zeros

Min Table = 
FILTER(
    ADDCOLUMNS(
        SUMMARIZE(
            'Table'
            , 'Table'[Country]
            , 'Table'[Category]
            , 'Table'[Colour]
        )
        , "Min Price", CALCULATE( MIN( 'Table'[Price per kg] ) )
    )
    , [Min Price] <> 0
)

Hopefully, this is what you are looking for. If not provide sample data and the expected result.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thank You @TomMartens 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.