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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
damit230183
Helper II
Helper II

How to sum only certain value to put in on any visuals

Hello,

 

I have this table,

damit230183_0-1769610051617.png

 

I would like to create CARD for total which should show 5900 not 41,300.

 

In this image generally every friday we send out some email to certain users which you can see one week it was 2900 and next week it's 3000, Therefore, when i add those it should be 5900 total send out email for two weeks.

 

Any suggestion or idea how can i achieve this?

 

Thanks

 

 

3 ACCEPTED SOLUTIONS
Idrissshatila
Super User
Super User

Hello @damit230183 ,

 

you can try the follwoing measure, and in this measure you'll only sum one day per week which will result as you mentioned

Total Fridays = 
CALCULATE(
    SUM(YourTable[Total]),
    WEEKDAY(YourTable[Date], 2) = 5  
)


Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

MasonMA
Super User
Super User

Hi,

 

If you do not have a Date table filtering this table in your post, i'd suggest first creating one. 

Add a 'WeekStart'column in date table as below. 

MasonMA_0-1769612256682.png

 

and use below Measure for your Card. 

Emails =
SUMX (
    ADDCOLUMNS (
        VALUES ( DateTable[WeekStart] ),
        "@WeeklyTotal", CALCULATE ( MAX ( Card[DailyTotal] ) )
    ),
    [@WeeklyTotal]
)
 
MasonMA_1-1769612342145.png

 

View solution in original post

krishnakanth240
Memorable Member
Memorable Member

Hi @damit230183 

 

Can you check this measure

krishnakanth240_0-1769612937765.png

 

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Create a Calendar table and a relationship (Many to One and Single) from the Date column of your Table to the Date column of the Calendar table.  In the Calendar Table. create this calculated column formula

DoW = format(calendar[date],"dddd")

Write this measure

Measure = calculate(sum(Data[Total]),Calendar[DoW]="Friday")

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
damit230183
Helper II
Helper II

Thank you all for your quick responses. All solution worked for me as expected.

 

Now I have follow up question on same table....

 

Table is about email send to how many users weekly which 3000....now I want to calculate about how many total users have read that email as seen in new image below. Some day there will be more someday there will be less i just want add difference as seen image below. Total read should not be more than 3000.

 

damit230183_0-1769628192388.png

In this case for 1 week total users who got email are 3000, but till the week finish only 2950 has read that email.

 

Any suggestion or advice ?

 

Thanks

krishnakanth240
Memorable Member
Memorable Member

Hi @damit230183 

 

Can you check this measure

krishnakanth240_0-1769612937765.png

 

MasonMA
Super User
Super User

Hi,

 

If you do not have a Date table filtering this table in your post, i'd suggest first creating one. 

Add a 'WeekStart'column in date table as below. 

MasonMA_0-1769612256682.png

 

and use below Measure for your Card. 

Emails =
SUMX (
    ADDCOLUMNS (
        VALUES ( DateTable[WeekStart] ),
        "@WeeklyTotal", CALCULATE ( MAX ( Card[DailyTotal] ) )
    ),
    [@WeeklyTotal]
)
 
MasonMA_1-1769612342145.png

 

Idrissshatila
Super User
Super User

Hello @damit230183 ,

 

you can try the follwoing measure, and in this measure you'll only sum one day per week which will result as you mentioned

Total Fridays = 
CALCULATE(
    SUM(YourTable[Total]),
    WEEKDAY(YourTable[Date], 2) = 5  
)


Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

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