Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi Experts
The following DAX measure work fine, i have two version one for upward moving values and the other for downward moving values (data points). i would like to work out the 3rd option when No movement is selected from my slicer (so basically it does not equal to either up nor downwards)
Downwards Measure
Downwards = CALCULATE ( IF ( ISBLANK ( COUNTA ( 'PMS_COMPLAINT'[MATERIAL_ID]) ), BLANK (), COUNTA ( 'PMS_COMPLAINT'[MATERIAL_ID] ) ), FILTER ( ALLSELECTED ('PMS_FINANCIAL_PDS'[ROLL12_COMPLETE_PDS_IND] ), CALCULATE('_Measures'[p-value]<=0.05 && 'PMS_FINANCIAL_PDS'[Tau 1] < 0) ) ) + 0
Upwards Measure
Upwards = CALCULATE ( IF ( ISBLANK ( COUNTA ( 'PMS_COMPLAINT'[MATERIAL_ID]) ), BLANK (), COUNTA ( 'PMS_COMPLAINT'[MATERIAL_ID] ) ), FILTER ( ALLSELECTED ('PMS_FINANCIAL_PDS'[ROLL12_COMPLETE_PDS_IND] ), CALCULATE('_Measures'[p-value]<=0.05 && 'PMS_FINANCIAL_PDS'[Tau 1] > 0) ) ) + 0
the key is the '_Measures'[p-value]<=0.05 && 'PMS_FINANCIAL_PDS'[Tau 1] > 0) part which tell you direction of movement.
Solved! Go to Solution.
I would make a measure like the one below - it should filter the opposite observations than upward and downwards:
The logic:
If either of the two is true then the row is included in the dataset.
No change = CALCULATE ( IF ( ISBLANK ( COUNTA ( 'PMS_COMPLAINT'[MATERIAL_ID]) ), BLANK (), COUNTA ( 'PMS_COMPLAINT'[MATERIAL_ID] ) ), FILTER ( ALLSELECTED ('PMS_FINANCIAL_PDS'[ROLL12_COMPLETE_PDS_IND] ), CALCULATE('_Measures'[p-value] > 0.05 || 'PMS_FINANCIAL_PDS'[Tau 1] = 0) ) ) + 0
If this works then please mark it as the solution and else please provide some more information about your issue, i.e. a small sample of the data.
I would make a measure like the one below - it should filter the opposite observations than upward and downwards:
The logic:
If either of the two is true then the row is included in the dataset.
No change = CALCULATE ( IF ( ISBLANK ( COUNTA ( 'PMS_COMPLAINT'[MATERIAL_ID]) ), BLANK (), COUNTA ( 'PMS_COMPLAINT'[MATERIAL_ID] ) ), FILTER ( ALLSELECTED ('PMS_FINANCIAL_PDS'[ROLL12_COMPLETE_PDS_IND] ), CALCULATE('_Measures'[p-value] > 0.05 || 'PMS_FINANCIAL_PDS'[Tau 1] = 0) ) ) + 0
If this works then please mark it as the solution and else please provide some more information about your issue, i.e. a small sample of the data.
All Experts
Many thanks for the excellent feedback.
Hi @Anonymous
Try.
Downwards = CALCULATE ( IF ( ISBLANK ( COUNTA ( 'PMS_COMPLAINT'[MATERIAL_ID]) ), BLANK (), COUNTA ( 'PMS_COMPLAINT'[MATERIAL_ID] ) ), FILTER ( ALLSELECTED ('PMS_FINANCIAL_PDS'[ROLL12_COMPLETE_PDS_IND] ), CALCULATE('_Measures'[p-value]<=0.05 && 'PMS_FINANCIAL_PDS'[Tau 1] = 0) ) ) + 0
Apologies for asking can anyone shed some light on
https://community.powerbi.com/t5/Desktop/Relationship-issue-with-Measure/m-p/786447#M378770
its been driving me mad.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
70 | |
68 | |
50 | |
32 |
User | Count |
---|---|
117 | |
100 | |
73 | |
65 | |
40 |