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! Learn more

Reply
Anonymous
Not applicable

Calculate totals for current month problem

Hello,

 

I am trying to calculate a number of totals, %, median time for the current month. I have 2 tables. One has the filter for this month:

Loladba_0-1647339393803.png

the other table is the same but I put manually 2 filters for march 2022 (this month):

Loladba_1-1647339449112.png

The 2 tables are not the same everywhere, some columns were not calculated properly:

Loladba_2-1647339486654.png

Th 1st one has this month filter, the second one is the correct one (there's the march and 2022 filter on it)

 

For the number of demands (1st column there's a difference of 1, I don't know why); the formula of the column:

Total demandes = VAR __table = SUMMARIZE('Documents',[No-QR7],"__value",[Max nb demande])

            RETURN

IF(HASONEVALUE(Documents[No-QR7]),[Max nb demande],SUMX(__table,[__value]))

(Max nb demande= MAXX(Documents,DISTINCTCOUNT(Documents[No-QR7])))

I calculated with the max function because of duplicates and to calculate the sum of the column I had to summarize...

 

Problem for total documents : 

Total documents = COUNT(Documents[Id])

 

For Taux valides there's also a difference which is probably due to the number of demands that is not the same because Taux valides= Valides/total demandes

 

Can anyone help me?

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Sorry but I don't know how I could do that, everything comes from a confidential sharepoint (I can't modify to hide data) and I don't see how I can remove sensitive data from the pbix without the user being able to get it back

 

I clicked to accept as solution without wanting to (sorry)

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