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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Paulompm
Frequent Visitor

Conditional percentage using DAX

Hello everyone,
need to get the percentage value that represents each day within the month by product type using dax formula(s). E.g.:

 Sem título.png

 

 

 

 

 

 

 

 

 

 

 

 Sample:

 

DateProduct TypeValue
04/01/2015Accessories 30,00 
04/01/2015WL 15.675,99 
04/01/2015Telephony 11.134,16 
04/06/2015WL 15.378,00 
04/06/2015Telephony 7.678,10 
04/07/2015WL 7.651,00 
04/07/2015Telephony 10.012,12 
04/07/2015Accessories 50,00 
04/09/2015WL 4.397,00 
04/09/2015Telephony 20.571,23 
Total  92.577,60 

 


I hope I have been clear in my problem. Thank you for your attention.

 

2 ACCEPTED SOLUTIONS
spuder
Resolver IV
Resolver IV

Hi Paulompm,

 

I think this measure would give you your result you wish to have.

example.jpg

 

View solution in original post

Vvelarde
Community Champion
Community Champion

@Paulompm

 

Hi, try with this:

 

%ByDay =
SUMX (
    Table1,
    DIVIDE (
        CALCULATE ( SUM ( Table1[Value] ) ),
        CALCULATE ( SUM ( Table1[Value] ), ALLEXCEPT ( Table1,Table1[Product Type] ) )
    )
)



Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

@Paulompm

 

Hi, try with this:

 

%ByDay =
SUMX (
    Table1,
    DIVIDE (
        CALCULATE ( SUM ( Table1[Value] ) ),
        CALCULATE ( SUM ( Table1[Value] ), ALLEXCEPT ( Table1,Table1[Product Type] ) )
    )
)



Lima - Peru
spuder
Resolver IV
Resolver IV

Hi Paulompm,

 

I think this measure would give you your result you wish to have.

example.jpg

 

actually it isn't working very well this measure. I have data for several years and I think the ALLEXCEPT Is mixing the years or month or both. I should get much higher percentage values.

 

Exemple

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors