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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
bourne2000
Helper V
Helper V

Visualizing Weekly sales

I have a salary data and I created date table with week no. Below is my data

 

bourne2000_0-1633306470009.png

 

I want to visualize week vs total salary and getting below visual

 

bourne2000_1-1633306496277.png

 

I want to visualze start of the week date vs total salary. Above visual is not reall good for our user. I need to have table like below

 

DateWeekNoTotal Salary
Monday, July 12, 20213019616.62
Monday, July 19, 20213120112.84
Monday, July 26, 20213220112.84
Monday, August 02,20213320112.84
Monday, August 09,20213420112.84

 

If I get the above table , then I can visualize. Not sure how to get the start date of the week?

 

Can anyone advise

 

Attach my pbix file https://we.tl/t-vKmhVtBYmH

 

 

1 ACCEPTED SOLUTION
smpa01
Community Champion
Community Champion

@bourne2000  please try this

 

 

Measure =
VAR _0 =
    MAX ( 'Date'[WeekNo] )
VAR _1 =
    CALCULATE (
        SUM ( Data[Total Salary] ),
        ALL ( 'Date' ),
        TREATAS ( { _0 }, 'Date'[WeekNo] )
    )
RETURN
    SWITCH ( TRUE (), MAX ( 'Date'[Day Name] ) = "Mon", _1 )

 

smpa01_0-1633313968694.png

 

 

 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

1 REPLY 1
smpa01
Community Champion
Community Champion

@bourne2000  please try this

 

 

Measure =
VAR _0 =
    MAX ( 'Date'[WeekNo] )
VAR _1 =
    CALCULATE (
        SUM ( Data[Total Salary] ),
        ALL ( 'Date' ),
        TREATAS ( { _0 }, 'Date'[WeekNo] )
    )
RETURN
    SWITCH ( TRUE (), MAX ( 'Date'[Day Name] ) = "Mon", _1 )

 

smpa01_0-1633313968694.png

 

 

 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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