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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Subtract Measure Values from Column

Is there a way to subtract column values [Rules] from a measure?

 

My measure which gives me number of working days in a month is:

 

Measure 5 = 
VAR _Month = CALCULATE(COUNT(DimDate[Days in Month]),FILTER(DimDate,'DimDate'[WorkingDays] <>BLANK()))
VAR _lastday=
COUNTROWS(
FILTER(DimDate,'DimDate'[WorkingDays] <>BLANK()))
RETURN
IF ( ISBLANK ( [AbsentByDay] ), BLANK (), _lastday )

 

Thanks,

 

https://www.dropbox.com/s/vojq25pkazt4lmj/Sample5.pbix?dl=0

3 REPLIES 3
Anonymous
Not applicable

@amitchandak I think I have it here:

Measure 9 = 

IF(HASONEVALUE('Employee Absence Full Table'[Rules]),[Measure 5],
SUMX(
ALLSELECTED('Employee Absence Full Table'),
[Measure 5]))- SUMX(ALLSELECTED('Employee Absence Full Table'[Rules]),'Employee Absence Full Table'[Rules])
But I end up with this, is there a way to just remove the values if measure 5 is blank?
Subtract output filter need1.PNG
 
 
 

 

amitchandak
Super User
Super User

@Anonymous , The output will be measure not column.

Can you share output in table format?

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

Subtract output.PNG

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.