cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Derekp978
Frequent Visitor

Tabular Model Showing Different Values Locally vs Server with AllExcept

All I have a larger tabular model with 3 key tables in play for my issue -

Client - Contain Line of Business
Added Date - Table containing values for when a transaction is added
properties - Fact table containing all property transactions; Contains a Field for a Score Bin (calculated on the back end) 

Need - I need the count of properties to span accross the entire Line of Business(LOB) which pivoted.  The main case is because the new Visual with Small Multiples can only calculate % over a Grand Total and not a Sub Total.


Measures:

 

 

Properties in Bin 20 Denominator:= 
VAR mindate = MIN('Added Date'[Added Date])
VAR maxdate = MAX('Added Date'[Added Date])

RETURN CALCULATE(
		[Count of Properties]
		, 'Properties'[Visual Score (Bin 20)] <> BLANK() 
		,ALLEXCEPT(Clients,Clients[Client LOB])
		, FILTER('Added Date', 'Added Date'[Added Date] >= mindate && 'Added Date'[Added Date] <= maxdate)
	)
% Properties in Bin 20:= 
VAR mindate = MIN('Added Date'[Added Date])
VAR maxdate = MAX('Added Date'[Added Date])

RETURN DIVIDE(
[Count of Properties]
,            CALCULATE(
		[Count of Properties]
		, 'Properties'[Visual Score (Bin 20)] <> BLANK() 
		,ALLEXCEPT(Clients,Clients[Client LOB])
		, FILTER('Added Date', 'Added Date'[Added Date] >= mindate && 'Added Date'[Added Date] <= maxdate)
	)
, BLANK()
)

 

 


When a use "Analyze in Excel" from Visual Studio the Measures and Output react as expected - 

Derekp978_0-1656090087939.png

 

When I deploy the Tabular Model and look at it in PBI Desktop or on the Server I get - It IS respecting the Non-Blank clause - but NOT the ALLEXCEPT

Derekp978_1-1656090205841.png


Any ideas as to why the Excel / Server models are different - OR - is there anything wrong with the DAX? 



1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @Derekp978 

 

Can you provide simple pbix files for testing? Initially, I think it's a filter issue.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors