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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
nj17
Helper III
Helper III

Show full month target in a matrix for each product when we have a page level MTD filter

Hi All,

 

I have a matrix where i have brand name and under that products.I am currently showing MTD Revenue Target and want to show Full month target in another column.

How can I show Full month target along with MTD revenue target when I have a Page level filter set to show only MTD records

currently both are same

nj17_0-1659154734070.png

 

nj17_1-1659154977873.png

 

@amitchandak 

 

Thanks,

NJ

 

1 ACCEPTED SOLUTION
AUDISU
Resolver III
Resolver III

Hi @nj17 

 

Please use following DAX code.

 

Full month target =
//Get start date of selected month
VAR SD =  STARTOFMONTH(Calender[Date])

//Get ebd date of selected month
VAR ED = ENDOFMONTH(Calender[Date])

// Calculate full month target
VAR Fullmonthtarget = CALCULATE(SUM(MyTable[Amount]),Calender[Date] >= SD && Calender[Date] <= ED)

RETURN
Fullmonthtarget
 
Thank you.

View solution in original post

4 REPLIES 4
nj17
Helper III
Helper III

Hi @AUDISU 

it is working for me.

but I want to know how it is ignoring page level filter? which only showing value for MTD and not whole month

Hi @nj17 ,

Which slicers do you have in your report?

Thank you.

Hi @AUDISU 

I have below page level filter on page where i am using Full Month Target.

MTD ia flag in date table for all MTD dates.why this filter not affecting the measure?

nj17_0-1659518935790.png

 

AUDISU
Resolver III
Resolver III

Hi @nj17 

 

Please use following DAX code.

 

Full month target =
//Get start date of selected month
VAR SD =  STARTOFMONTH(Calender[Date])

//Get ebd date of selected month
VAR ED = ENDOFMONTH(Calender[Date])

// Calculate full month target
VAR Fullmonthtarget = CALCULATE(SUM(MyTable[Amount]),Calender[Date] >= SD && Calender[Date] <= ED)

RETURN
Fullmonthtarget
 
Thank you.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.